Skip to content

Commit 908b925

Browse files
authored
Update test_changed_notebooks.yaml
1 parent 66fb08d commit 908b925

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

Diff for: .github/workflows/test_changed_notebooks.yaml

+18-15
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,40 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515
with:
16-
fetch-depth: 0
1716
path: dea-notebooks
1817

1918
# - name: Set up Python
2019
# uses: actions/setup-python@v4
2120
# with:
2221
# python-version: '3.x'
2322

24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install pytest pytest-nbval jupyter
28-
2923
- name: Get changed notebook files
3024
id: changed-notebooks
3125
uses: tj-actions/changed-files@v44
3226
with:
3327
files: '**/*.ipynb'
34-
28+
separator: ' '
29+
30+
- name: Print changed notebook files
31+
if: steps.changed-notebooks.outputs.any_changed == 'true'
32+
run: |
33+
echo "Changed notebook files:"
34+
echo "${{ steps.changed-notebooks.outputs.all_changed_files }}"
35+
3536
- name: Get changed Python files
3637
id: changed-py-files
3738
uses: tj-actions/changed-files@v44
3839
with:
3940
files: '**/*.py'
40-
41-
- name: Run pytest on changed notebooks
42-
if: steps.changed-notebooks.outputs.any_changed == 'true'
43-
run: |
44-
pytest --nbval-lax ${{ steps.changed-notebooks.outputs.all_changed_files }}
45-
46-
- name: Run pytest on Python files
41+
separator: ' '
42+
43+
- name: Print changed Python files
4744
if: steps.changed-py-files.outputs.any_changed == 'true'
4845
run: |
49-
pytest Tests/dea_tools
46+
echo "Changed Python files:"
47+
echo "${{ steps.changed-py-files.outputs.all_changed_files }}"
48+
49+
# - name: Run pytest on Python files
50+
# if: steps.changed-py-files.outputs.any_changed == 'true'
51+
# run: |
52+
# pytest Tests/dea_tools

0 commit comments

Comments
 (0)