File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,17 @@ name: Test examples
2
2
permissions : read-all
3
3
4
4
on :
5
+ pull_request : # TODO: remove
5
6
schedule :
6
7
- cron : ' 0 0 * * *'
7
8
workflow_dispatch :
8
9
inputs :
9
10
pull_request_number :
10
11
description : ' The pull request number'
11
- required : true
12
- type : number
12
+ default : ' '
13
13
pytest_args :
14
14
description : ' Pytest arguments'
15
15
default : ' '
16
- type : string
17
16
18
17
jobs :
19
18
examples-cpu :
32
31
lfs : true
33
32
fetch-depth : 0 # Fetch full history to allow checking out any branch or PR
34
33
- name : Fetch and Checkout the Pull Request Branch
35
- if : ${{ github.event_name == 'workflow_dispatch' }}
34
+ if : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.pull_request_number != '' }}
36
35
run : |
37
36
git fetch origin pull/${{ github.event.inputs.pull_request_number }}/head:pr-${{ github.event.inputs.pull_request_number }}
38
37
git checkout pr-${{ github.event.inputs.pull_request_number }}
49
48
- name : Print installed modules
50
49
run : pip list
51
50
- name : Run examples test scope
52
- continue-on-error : true
53
51
run : |
54
52
python -m pytest -ras tests/cross_fw/examples \
55
53
--junit-xml=pytest-results-${{ matrix.group }}.xml \
62
60
TQDM_DISABLE : 1
63
61
- name : Upload artifact
64
62
uses : actions/upload-artifact@v4
63
+ if : ${{ !cancelled() }}
65
64
with :
66
65
name : pytest-results-${{ matrix.group }}
67
66
path : pytest-results-${{ matrix.group }}.xml
You can’t perform that action at this time.
0 commit comments