Skip to content

Commit 0d4f182

Browse files
committed
fix/tests
1 parent 3d77fe6 commit 0d4f182

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ jobs:
3737
run: |
3838
set -eux
3939
python -m pip install -U pip
40-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
41-
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
42-
pip install pytest coverage nbformat nbclient
40+
pip install -r service/requirements.test.txt
4341
if [ -f service/pyproject.toml ] || [ -f service/setup.cfg ] || [ -f service/setup.py ]; then
4442
pip install -e service
4543
fi
@@ -49,9 +47,7 @@ jobs:
4947
run: |
5048
$ErrorActionPreference = "Stop"
5149
python -m pip install -U pip
52-
if (Test-Path requirements.txt) { pip install -r requirements.txt }
53-
if (Test-Path requirements-dev.txt) { pip install -r requirements-dev.txt }
54-
pip install pytest coverage nbformat nbclient
50+
pip install -r service/requirements.test.txt
5551
if (Test-Path service/pyproject.toml -or Test-Path service/setup.cfg -or Test-Path service/setup.py) {
5652
pip install -e service
5753
}

service/app/tests/test_notebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def test_workspace_notebook_runs_and_prints_hello():
9-
nb_path = Path("main.ipynb")
9+
nb_path = Path(__file__).resolve().parents[1] / "main.ipynb"
1010
assert nb_path.exists(), f"Notebook not found: {nb_path}"
1111

1212
nb = nbformat.read(str(nb_path), as_version=4)

0 commit comments

Comments
 (0)