From 26f2a0db281147f74a7f4ffa9e16ba5f8640ab2f Mon Sep 17 00:00:00 2001 From: Tom Fleet Date: Fri, 24 Dec 2021 13:51:44 +0000 Subject: [PATCH] Unpin docs session and add --error-on-missing-interpreter to CI sessions (#532) --- .github/workflows/ci.yml | 6 +++--- noxfile.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4267b72c..5d833934 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: run: | python -m pip install --disable-pip-version-check . - name: Run tests on ${{ matrix.os }} - run: nox --non-interactive --session "tests-${{ matrix.python-version }}" -- --full-trace + run: nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python-version }}" -- --full-trace lint: runs-on: ubuntu-20.04 steps: @@ -35,7 +35,7 @@ jobs: run: | python -m pip install --disable-pip-version-check . - name: Lint - run: nox --non-interactive --session "lint" + run: nox --non-interactive --error-on-missing-interpreter --session "lint" docs: runs-on: ubuntu-20.04 steps: @@ -48,7 +48,7 @@ jobs: run: | python -m pip install --disable-pip-version-check . - name: Docs - run: nox --non-interactive --session "docs" + run: nox --non-interactive --error-on-missing-interpreter --session "docs" deploy: needs: build runs-on: ubuntu-20.04 diff --git a/noxfile.py b/noxfile.py index 7c013dbd..a770d9fa 100644 --- a/noxfile.py +++ b/noxfile.py @@ -119,7 +119,7 @@ def lint(session): session.run("flake8", *files) -@nox.session(python="3.9") +@nox.session def docs(session): """Build the documentation.""" output_dir = os.path.join(session.create_tmp(), "output")