@@ -13,37 +13,40 @@ jobs:
13
13
steps :
14
14
- uses : actions/checkout@v3
15
15
with :
16
- fetch-depth : 0
17
16
path : dea-notebooks
18
17
19
18
# - name: Set up Python
20
19
# uses: actions/setup-python@v4
21
20
# with:
22
21
# python-version: '3.x'
23
22
24
- - name : Install dependencies
25
- run : |
26
- python -m pip install --upgrade pip
27
- pip install pytest pytest-nbval jupyter
28
-
29
23
- name : Get changed notebook files
30
24
id : changed-notebooks
31
25
uses : tj-actions/changed-files@v44
32
26
with :
33
27
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
+
35
36
- name : Get changed Python files
36
37
id : changed-py-files
37
38
uses : tj-actions/changed-files@v44
38
39
with :
39
40
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
47
44
if : steps.changed-py-files.outputs.any_changed == 'true'
48
45
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