Skip to content

Commit

Permalink
Set up environments in a separate step.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Mar 10, 2024
1 parent 23aa5cf commit 32d1b20
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/nox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ jobs:
uses: wntrblm/nox@2024.03.02
with:
python-versions: "3.12"
- run: |
nox -e lint
- name: Set up environments
run: |
nox -v -e lint --install-only
- name: Run linters
run: |
nox -v -e lint --reuse-existing-virtualenvs --no-install
nox-test:
runs-on: ubuntu-latest
defaults:
Expand All @@ -73,12 +77,15 @@ jobs:
uses: wntrblm/nox@2024.03.02
with:
python-versions: "3.9, 3.10, 3.11, 3.12"
- name: Set up environments
run: |
nox -v -e test -e coverage --install-only
- name: Run unit tests
run: |
nox -v -e test
nox -v -e test --reuse-existing-virtualenvs --no-install
- name: Report coverage
run: |
nox -v -e coverage
nox -v -e coverage --reuse-existing-virtualenvs --no-install
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
Expand Down

0 comments on commit 32d1b20

Please sign in to comment.