Skip to content

Commit 29d3f5c

Browse files
authored
gh-468: fix virtualenv in testing (#471)
1 parent a2f1a79 commit 29d3f5c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Cache nox
3939
uses: actions/cache@v4
4040
with:
41-
key: test-${{ hashFiles('pyproject.toml') }}
41+
key: test-${{ hashFiles('pyproject.toml') }}-${{ env.pythonLocation }}
4242
path: .nox
4343

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

54+
- name: Install ubuntu dependencies for fitsio
55+
run: sudo apt-get install -y libbz2-dev
56+
5457
- name: Run doctests
5558
run: nox -s doctests-${{ matrix.python-version }} --verbose
5659
env:

noxfile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
import nox
88

99
# Options to modify nox behaviour
10+
nox.options.default_venv_backend = "uv|virtualenv"
1011
nox.options.reuse_existing_virtualenvs = True
11-
nox.options.sessions = ["lint", "tests"]
12+
nox.options.sessions = [
13+
"lint",
14+
"tests",
15+
]
1216

1317
ALL_PYTHON = [
1418
"3.10",

0 commit comments

Comments
 (0)