-
Notifications
You must be signed in to change notification settings - Fork 128
52 lines (43 loc) · 1.3 KB
/
test_changed_notebooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Test Modified Files
on:
push:
branches: [ changed_files ]
pull_request:
branches: [ changed_files ]
jobs:
test_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# with:
# fetch-depth: 100
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.x'
- name: Get changed notebook files
id: changed-notebooks
uses: tj-actions/changed-files@v44
with:
files: '**/*.ipynb'
separator: ' '
- name: Print changed notebook files
if: steps.changed-notebooks.outputs.any_changed == 'true'
run: |
echo "Changed notebook files:"
echo "${{ steps.changed-notebooks.outputs.all_changed_files }}"
- name: Get changed Python files
id: changed-py-files
uses: tj-actions/changed-files@v44
with:
files: '**/*.py'
separator: ' '
- name: Print changed Python files
if: steps.changed-py-files.outputs.any_changed == 'true'
run: |
echo "Changed Python files:"
echo "${{ steps.changed-py-files.outputs.all_changed_files }}"
# - name: Run pytest on Python files
# if: steps.changed-py-files.outputs.any_changed == 'true'
# run: |
# pytest Tests/dea_tools