99 artifact_fw_version :
1010 type : string
1111 required : true
12- pytest_marker :
13- type : string
12+ test_all :
13+ type : boolean
1414 required : false
15- default : -m "not slow"
15+ default : false
1616 pytest_path :
1717 type : string
1818 required : false
3333 description : The run ID of the workflow to fetch artifacts from
3434 type : string
3535 required : true
36- pytest_marker :
37- description : The pytest marker to run
38- type : string
36+ test_all :
37+ description : Run all tests
38+ type : boolean
3939 required : false
40+ default : false
4041 pytest_path :
4142 description : Select test execution path
4243 type : string
@@ -57,15 +58,18 @@ jobs:
5758 steps :
5859 - id : set-matrix
5960 run : |
60- if [[ ${{ github.event_name == 'schedule' }} == true ]]; then
61+ if [[ ${{ github.event_name == 'schedule' }} ]]; then
62+ marker=''
63+ matrix='["thingy91x","nrf9151dk","ppk_thingy91x"]'
64+ elif [[ ${{ inputs.test_all }} ]]; then
6165 marker=''
6266 matrix='["thingy91x","nrf9151dk","ppk_thingy91x"]'
63- elif [[ ${{ github.event_name == 'push' }} == true ]]; then
67+ elif [[ ${{ github.event_name == 'push' }} ]]; then
6468 marker='-m "not slow"'
6569 matrix='["thingy91x"]'
6670 else
67- marker='${{ inputs.pytest_marker }} '
68- matrix=${{ inputs.devices }}
71+ marker='-m "not slow" '
72+ matrix='["thingy91x"]'
6973 fi
7074
7175 echo Matrix as string: $matrix
@@ -128,7 +132,7 @@ jobs:
128132 nrfutil install trace
129133
130134 - name : Upload symbol file to Memfault
131- if : ${{ matrix.device == 'thingy91x' }}
135+ if : ${{ inputs.test_all }}
132136 working-directory : asset-tracker-template/tests/on_target/artifacts
133137 run : |
134138 memfault \
@@ -151,14 +155,19 @@ jobs:
151155 working-directory : asset-tracker-template/tests/on_target
152156 run : |
153157 mkdir -p results
158+ if [[ ${{ inputs.build_all }} ]]; then
159+ pytest_marker=""
160+ else
161+ pytest_marker='-m "not slow"'
162+ fi
154163 if [[ '${{ matrix.device }}' == 'ppk_thingy91x' ]]; then
155164 # For PPK device, only run tests/test_ppk
156- pytest -v ${{ needs.set-matrix.outputs. pytest_marker }} \
165+ pytest -v $pytest_marker \
157166 --junit-xml=results/test-results.xml \
158167 --html=results/test-results.html --self-contained-html \
159168 tests/test_ppk
160169 else
161- pytest -v ${{ needs.set-matrix.outputs. pytest_marker }} \
170+ pytest -v $pytest_marker \
162171 --junit-xml=results/test-results.xml \
163172 --html=results/test-results.html --self-contained-html \
164173 --ignore=tests/test_ppk \
0 commit comments