diff --git a/.github/workflows/bugfix.yml b/.github/workflows/bugfix.yml index 217f9465..79c20170 100644 --- a/.github/workflows/bugfix.yml +++ b/.github/workflows/bugfix.yml @@ -15,9 +15,10 @@ jobs: python-tests: name: 🐍 ${{ matrix.runs-on }} runs-on: ${{ matrix.runs-on }} - matrix: # Define a matrix of different Python versions - runs-on: [ubuntu-latest, windows-latest] - session: [minimums, tests] + strategy: + matrix: # Define a matrix of different Python versions + runs-on: [ubuntu-latest, windows-latest] + session: [minimums, tests] env: FORCE_COLOR: 3 GITHUB_TOKEN: ${{ github.token }} @@ -39,4 +40,4 @@ jobs: - uses: wntrblm/nox@2024.10.09 # run the nox minimums session (assumes a nox session named "minimums" exists) with coverage - name: 🐍 Test with minimal versions - run: nox -s ${{matrix.session}} --verbose \ No newline at end of file + run: nox -s ${{matrix.session}} --verbose diff --git a/noxfile.py b/noxfile.py index 83ca22f4..64a5a46c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -53,9 +53,11 @@ def _run_tests( _extras.append("coverage") posargs.append("--cov-config=pyproject.toml") - session.install(*BUILD_REQUIREMENTS, *install_args, env=env) + _install_args = ["--exclude-newer", "2024-09-14", *install_args] + + session.install(*BUILD_REQUIREMENTS, *_install_args, env=env) install_arg = f"-ve.[{','.join(_extras)}]" - session.install("--no-build-isolation", install_arg, *install_args, env=env) + session.install("--no-build-isolation", install_arg, *_install_args, env=env) session.run("pytest", *run_args, *posargs, env=env)