Skip to content

Commit

Permalink
Use proper env variable for pooch cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
matham committed Jun 6, 2024
1 parent bb0ed47 commit acf0d63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
name: ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
env:
# used on unix by pooch for cache dir
XDG_CACHE_HOME: "~/.pooch_cache"
# pooch cache dir
BRAINGLOBE_TEST_DATA_DIR: "~/.pooch_cache"

strategy:
matrix:
# Run all supported Python versions on linux
Expand Down Expand Up @@ -71,8 +72,8 @@ jobs:
runs-on: ubuntu-latest
env:
NUMBA_DISABLE_JIT: "1"
# used on unix by pooch for cache dir
XDG_CACHE_HOME: "~/.pooch_cache"
# pooch cache dir
BRAINGLOBE_TEST_DATA_DIR: "~/.pooch_cache"

steps:
- name: Cache pooch data
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,5 @@ passenv =
DISPLAY
XAUTHORITY
PYVISTA_OFF_SCREEN
BRAINGLOBE_TEST_DATA_DIR
"""
1 change: 1 addition & 0 deletions tests/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ def test_data_registry():
"cellfinder/cells-z-1000-1050.xml": None,
"cellfinder/other-cells-z-1000-1050.xml": None,
},
env="BRAINGLOBE_TEST_DATA_DIR",
)
return registry

0 comments on commit acf0d63

Please sign in to comment.