Skip to content

Commit 03f6cb7

Browse files
author
ddundo
committed
Fix notebooks dirpath
1 parent 79ce5fd commit 03f6cb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test_suite.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
image: ghcr.io/pygem-community/pygem:${{ github.ref == 'refs/heads/master' && 'latest' || 'dev' }}
3535
options: --user root
3636
env:
37-
GITHUB_NOTEBOOKS_PATH: $HOME/PyGEM-notebooks
37+
NOTEBOOKS_DIRPATH: ${{ github.workspace }}/PyGEM-notebooks
3838

3939
steps:
4040
- name: 'Checkout the PyGEM-notebooks repo'
4141
uses: actions/checkout@v4
4242
with:
4343
repository: 'pygem-community/PyGEM-notebooks'
44-
path: ${{ env.GITHUB_NOTEBOOKS_PATH }}
44+
path: ${{ env.NOTEBOOKS_DIRPATH }}
4545

4646
- name: 'Checkout the PyGEM repo'
4747
id: checkout

pygem/tests/test_notebooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pytest
55

66
# Get all notebooks in the PyGEM-notebooks repository
7-
nb_dir = os.environ.get("GITHUB_NOTEBOOKS_PATH") or os.path.join(
7+
nb_dir = os.environ.get("NOTEBOOKS_DIRPATH") or os.path.join(
88
os.path.expanduser("~"), "PyGEM-notebooks"
99
)
1010
notebooks = [f for f in os.listdir(nb_dir) if f.endswith(".ipynb")]

0 commit comments

Comments
 (0)