Skip to content

Commit b280473

Browse files
committed
CI: Add TEST_DATA_HOME to match cache directory
1 parent 1beb4a8 commit b280473

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ jobs:
183183
test "${INSTALLED_VERSION}" = "${THISVERSION}"
184184
- name: Install test dependencies
185185
run: python -m pip install "niworkflows[tests]"
186+
- name: Set TEST_DATA_HOME
187+
run: echo "TEST_DATA_HOME=$HOME/.cache/stanford-crn" >> $GITHUB_ENV
186188
- name: Run tests
187189
run: pytest -sv --doctest-modules -n auto --cov niworkflows niworkflows
188190
- uses: codecov/codecov-action@v3
@@ -243,6 +245,8 @@ jobs:
243245
test "${INSTALLED_VERSION}" = "${THISVERSION}"
244246
- name: Install test dependencies
245247
run: python -m pip install $PIP_FLAGS "niworkflows[tests]"
248+
- name: Set TEST_DATA_HOME
249+
run: echo "TEST_DATA_HOME=$HOME/.cache/stanford-crn" >> $GITHUB_ENV
246250
- name: Run tests
247251
run: pytest -sv --doctest-modules -n auto --cov niworkflows niworkflows
248252
- uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)