Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: nox: set up environments in a separate step #256

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
Loading