Skip to content

Commit 1c91dc7

Browse files
committed
Fix GitHub Actions and tests after reorganization
- Update .github/workflows/tests.yml to use code/generate_figures.py - Update tests/test_cli.py to look for generate_figures.py in code/ folder - Fixes CI/CD pipeline after moving Python scripts to code/ directory
1 parent db8e41c commit 1c91dc7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ jobs:
6363
6464
- name: Test figure generation (single)
6565
run: |
66-
python generate_figures.py --figure 1a --data tests/data/test_model_results.pkl --output tests/output_single
66+
python code/generate_figures.py --figure 1a --data tests/data/test_model_results.pkl --output tests/output_single
6767
6868
- name: Test figure generation (all)
6969
run: |
70-
python generate_figures.py --data tests/data/test_model_results.pkl --output tests/output_all
70+
python code/generate_figures.py --data tests/data/test_model_results.pkl --output tests/output_all
7171
timeout-minutes: 5
7272

7373
- name: Upload test artifacts

data/model_results.pkl

-5.35 MB
Binary file not shown.

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TestCLI:
1717
@classmethod
1818
def setup_class(cls):
1919
"""Set up test paths."""
20-
cls.script_path = Path(__file__).parent.parent / "generate_figures.py"
20+
cls.script_path = Path(__file__).parent.parent / "code" / "generate_figures.py"
2121
cls.test_data_path = Path(__file__).parent / "data" / "test_model_results.pkl"
2222
cls.temp_dir = tempfile.mkdtemp()
2323

0 commit comments

Comments
 (0)