Skip to content

Commit

Permalink
Make poetry use the correct python version
Browse files Browse the repository at this point in the history
see actions/setup-python#374 (comment)

windows hosts cannot find python3.x in $PATH, but after
setup-python the python executable uses the correct version
  • Loading branch information
gmsantos committed May 28, 2022
1 parent 4dee7e4 commit d63edbd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Expand Up @@ -22,10 +22,11 @@ jobs:
with:
python-version: "3.7"
cache: "poetry"
cache-dependency-path: "**/poetry.lock"

- name: Install dependencies
run: poetry install
run: |
poetry env use "3.7"
poetry install
- name: Deploy docs
run: poetry run portray on_github_pages -f
5 changes: 3 additions & 2 deletions .github/workflows/pypi_publish.yml
Expand Up @@ -21,10 +21,11 @@ jobs:
with:
python-version: "3.7"
cache: "poetry"
cache-dependency-path: "**/poetry.lock"

- name: Install dependencies
run: poetry install
run: |
poetry env use "3.7"
poetry install
- name: Bump version number
run: poetry version ${{ github.event.release.tag_name }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/run_tests.yml
Expand Up @@ -26,10 +26,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
cache-dependency-path: "**/poetry.lock"

- name: Install dependencies
run: poetry install
run: |
poetry env use python
poetry install
- name: Run Checks
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test_pypi_publish.yml
Expand Up @@ -21,10 +21,11 @@ jobs:
with:
python-version: "3.7"
cache: "poetry"
cache-dependency-path: "**/poetry.lock"

- name: Install dependencies
run: poetry install
run: |
poetry env use "3.7"
poetry install
- name: Bump version number
run: poetry version ${{ github.event.release.tag_name }}
Expand Down

0 comments on commit d63edbd

Please sign in to comment.