Skip to content

Commit

Permalink
Error out from workflow on missing interpreter (#525)
Browse files Browse the repository at this point in the history
The `lint` and `docs` workflow will fail/skip silently if there's a
mismatch between the python version setup in the workflow and
the one required in `noxfile.py`.

Run nox with `--error-on-missing-interpreters` to error out rather
than silently skipping the session.
  • Loading branch information
mayeut committed Mar 19, 2022
1 parent c5f1db9 commit 85ff971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Expand Up @@ -34,4 +34,4 @@ jobs:
python -m pip install --upgrade nox
- name: Build documentation
run: python -m nox -s docs
run: python -m nox --error-on-missing-interpreters -s docs
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -34,7 +34,7 @@ jobs:
python -m pip install --upgrade nox
- name: Run `nox -s lint`
run: python -m nox -s lint
run: python -m nox --error-on-missing-interpreters -s lint

build:
name: Build sdist and wheel
Expand Down

0 comments on commit 85ff971

Please sign in to comment.