diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 710f22a..8e3557a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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