Skip to content

Commit

Permalink
setup nox session correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Jun 28, 2022
1 parent 91e767d commit c9524dd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
pyv: ['3.8', '3.9', '3.10', '3.11-dev']
pyv: ['3.8', '3.9', '3.10']
nox_session: [""]
include:
- os: ubuntu-latest
pyv: 'pypy-3.8'
- os: ubuntu-latest
pyv: '3.11-dev'
nox_session: 'tests-3.11'

steps:
- name: Check out the repository
Expand All @@ -45,9 +49,12 @@ jobs:
- name: Lint code and check dependencies
if: matrix.pyv != '3.11-dev'
run: nox -s lint safety

- name: Make test session
run: echo "TEST_SESSION=${{ matrix.nox_session || format('tests-{0}', matrix.pyv) }}" >> $GITHUB_ENV

- name: Run tests
run: nox -s tests-${{ matrix.pyv }} -- --cov-report=xml
run: nox -s $TEST_SESSION -- --cov-report=xml

- name: Upload coverage report
uses: codecov/codecov-action@v3.1.0
Expand Down

0 comments on commit c9524dd

Please sign in to comment.