Skip to content

Commit

Permalink
trial and error
Browse files Browse the repository at this point in the history
  • Loading branch information
nquetschlich committed Dec 4, 2024
1 parent 2ffd960 commit e47f6b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/bugfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -39,4 +40,4 @@ jobs:
- uses: wntrblm/[email protected]
# 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
run: nox -s ${{matrix.session}} --verbose
6 changes: 4 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit e47f6b8

Please sign in to comment.