From c9524dd586b91a67bf0ec52ce83cda8ec830b704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Tue, 28 Jun 2022 11:49:06 +0545 Subject: [PATCH] setup nox session correctly --- .github/workflows/tests.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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