diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89dc337c..20f3a311 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ jobs: - name: Cache uses: actions/cache@v3 env: - cache-name: cache-0 + cache-name: cache-1 with: path: | .nox @@ -44,11 +44,12 @@ jobs: python -m pip install --upgrade pip pip install nox - name: Lint + if: matrix.python-version == '3.9' run: | - nox -s lint + nox -s lint --python ${{ matrix.python-version }} --no-error-on-external-run - name: Build run: | - nox -s build --python ${{ matrix.python-version }} + nox -s build --python ${{ matrix.python-version }} --no-error-on-external-run - name: Codecov if: matrix.python-version == '3.9' uses: codecov/codecov-action@v2 diff --git a/noxfile.py b/noxfile.py index 2990e27d..8db44e90 100644 --- a/noxfile.py +++ b/noxfile.py @@ -3,9 +3,11 @@ import nox nox.options.reuse_existing_virtualenvs = True +nox.options.error_on_external_run = False +nox.options.default_venv_backend = None -@nox.session +@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"]) def lint(session: nox.Session) -> None: session.install("pre-commit") session.run("pre-commit", "install")