Skip to content

Commit

Permalink
tests(ci): Fix python version with poetry caching and actions/setup-p…
Browse files Browse the repository at this point in the history
…ython@v3

poetry install will pick up the python binary at the time it was
installed (before actions/python ran) so it looks like poetry env needs
to be set manually.

https://github.com/actions/setup-python/releases/tag/v3.1.0
https://github.com/actions/setup-python/tree/v3.1.0
actions/setup-python#281
  • Loading branch information
tony committed Apr 2, 2022
1 parent f2798b8 commit 5637efc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Expand Up @@ -24,7 +24,10 @@ jobs:
cache: 'poetry'

- name: Install dependencies
run: poetry install -E "docs test coverage lint format"
run: |
# This is required to do as of @actions/checkout@v3 to prevent default python from being used
poetry env use ${{ matrix.python-version }}
poetry install -E "docs test coverage lint format"
- name: Lint with flake8
run: poetry run flake8
Expand Down

0 comments on commit 5637efc

Please sign in to comment.