Skip to content

Commit

Permalink
gh-468: fix virtualenv in testing (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy authored Jan 20, 2025
1 parent a2f1a79 commit 29d3f5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Cache nox
uses: actions/cache@v4
with:
key: test-${{ hashFiles('pyproject.toml') }}
key: test-${{ hashFiles('pyproject.toml') }}-${{ env.pythonLocation }}
path: .nox

- name: Set up Python
Expand All @@ -51,6 +51,9 @@ jobs:
- name: Install nox and coverage.py
run: python -m pip install coverage[toml] nox

- name: Install ubuntu dependencies for fitsio
run: sudo apt-get install -y libbz2-dev

- name: Run doctests
run: nox -s doctests-${{ matrix.python-version }} --verbose
env:
Expand Down
6 changes: 5 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
import nox

# Options to modify nox behaviour
nox.options.default_venv_backend = "uv|virtualenv"
nox.options.reuse_existing_virtualenvs = True
nox.options.sessions = ["lint", "tests"]
nox.options.sessions = [
"lint",
"tests",
]

ALL_PYTHON = [
"3.10",
Expand Down

0 comments on commit 29d3f5c

Please sign in to comment.