Skip to content

Commit a3029e2

Browse files
tests: on_target: fix nightly
Fix for nightly. Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
1 parent 144ac98 commit a3029e2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/target-test.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ jobs:
4141
target_test:
4242
# This will create multiple jobs, one for each target defined in the matrix
4343
strategy:
44+
fail-fast: false # Don't fail all jobs if one fails
4445
matrix:
4546
include:
4647
- device: cia-trd-thingy91x
4748
- device: ppk_thingy91x
48-
# Only run PPK tests when slow marker is specified
49-
if: ${{ inputs.pytest_marker == 'slow' }}
5049

5150
# Self-hosted runner is labeled according to the device it is linked with
5251
runs-on: ${{ matrix.device }}
@@ -112,23 +111,24 @@ jobs:
112111
run: |
113112
mkdir -p results
114113
114+
if [[ '${{ inputs.pytest_marker }}' == 'no_markers_flag' || '${{ inputs.pytest_marker }}' == '' ]]; then
115+
pytest_marker_arg=()
116+
else
117+
pytest_marker_arg=(-m "${{ inputs.pytest_marker }}")
118+
fi
119+
echo pytest -v "${pytest_marker_arg[@]}"
120+
115121
if [[ '${{ matrix.device }}' == 'ppk_thingy91x' ]]; then
116122
# For PPK device, only run test_power.py
117-
pytest -v tests/test_ppk/test_power.py \
123+
pytest -v "${pytest_marker_arg[@]}" \
118124
--junit-xml=results/test-results.xml \
119-
--html=results/test-results.html --self-contained-html
125+
--html=results/test-results.html --self-contained-html \
126+
tests/test_ppk/test_power.py
120127
else
121-
# For other devices, use normal marker logic
122-
if [[ '${{ inputs.pytest_marker }}' == 'no_markers_flag' || '${{ inputs.pytest_marker }}' == '' ]]; then
123-
pytest_marker_arg=()
124-
else
125-
pytest_marker_arg=(-m "${{ inputs.pytest_marker }}")
126-
fi
127-
128-
echo pytest -v "${pytest_marker_arg[@]}"
129128
pytest -v "${pytest_marker_arg[@]}" \
130129
--junit-xml=results/test-results.xml \
131130
--html=results/test-results.html --self-contained-html \
131+
--ignore=tests/test_ppk \
132132
${{ inputs.pytest_path }}
133133
fi
134134
shell: bash
@@ -164,7 +164,7 @@ jobs:
164164
uses: actions/upload-artifact@v4
165165
id: artifact-report
166166
with:
167-
name: test-report
167+
name: test-report-${{ matrix.device }}
168168
path: |
169169
asset-tracker-template/tests/on_target/results/*.html
170170
@@ -173,6 +173,6 @@ jobs:
173173
uses: actions/upload-artifact@v4
174174
id: artifact-upload-test-logs
175175
with:
176-
name: test-logs
176+
name: test-logs-${{ matrix.device }}
177177
path: |
178178
asset-tracker-template/tests/on_target/outcomes/logs/*.txt

0 commit comments

Comments
 (0)