Skip to content

Commit

Permalink
fix(templates): Test workflow job now fails for unsupported Python ve…
Browse files Browse the repository at this point in the history
…rsions in cookiecutter templates (#2232)

* Try to setup Poetry env for specific Python version before installing dependencies

* Keep running tests for other Python versions if others fail
  • Loading branch information
ReubenFrankel authored Feb 10, 2024
1 parent 068beae commit a9e5805
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on: [push]
jobs:
pytest:
runs-on: ubuntu-latest
continue-on-error: true
env:
GITHUB_TOKEN: {{ '${{secrets.GITHUB_TOKEN}}' }}
strategy:
Expand All @@ -24,6 +25,7 @@ jobs:
pip install poetry
- name: Install dependencies
run: |
poetry env use {{ '${{ matrix.python-version }}' }}
poetry install
- name: Test with pytest
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on: [push]
jobs:
pytest:
runs-on: ubuntu-latest
continue-on-error: true
env:
GITHUB_TOKEN: {{ '${{secrets.GITHUB_TOKEN}}' }}
strategy:
Expand All @@ -24,6 +25,7 @@ jobs:
pip install poetry
- name: Install dependencies
run: |
poetry env use {{ '${{ matrix.python-version }}' }}
poetry install
- name: Test with pytest
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on: [push]
jobs:
pytest:
runs-on: ubuntu-latest
continue-on-error: true
env:
GITHUB_TOKEN: {{ '${{secrets.GITHUB_TOKEN}}' }}
strategy:
Expand All @@ -24,6 +25,7 @@ jobs:
pip install poetry
- name: Install dependencies
run: |
poetry env use {{ '${{ matrix.python-version }}' }}
poetry install
- name: Test with pytest
run: |
Expand Down

0 comments on commit a9e5805

Please sign in to comment.