Skip to content

Commit

Permalink
Allow more Python versions and update GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
eyvorchuk committed May 8, 2024
1 parent 9c9ca2b commit 49a9a4d
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 150 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -29,15 +29,8 @@ jobs:
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies if changed
if: ${{ steps.cache-poetry.outputs.cache-hit != 'true' && matrix.python-version == '3.10' }}
if: ${{ steps.cache-poetry.outputs.cache-hit != 'true' }}
run: |
poetry install --with=dev
poetry run pip install -e .
- name: Re-install dependencies if alternative python version
if: ${{ matrix.python-version != '3.10' }}
run: |
mv poetry.lock do-not-use
poetry env use python${{ matrix.python-version }}
poetry install --with=dev
poetry run pip install -e .
Expand Down
Loading

0 comments on commit 49a9a4d

Please sign in to comment.