Skip to content

Commit 04a2216

Browse files
workflows: target-test: small fixes
Add missing ppk_thingy91x device. Move memory badges gen before test step. Otherwise it does not get executed on failure. Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
1 parent 39c6da9 commit 04a2216

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/target-test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
6060
matrix="${{ github.event.inputs.devices }}"
6161
elif [[ "${{ inputs.is_scheduled }}" == "true" ]]; then
62-
matrix='["thingy91x","nrf9151dk"]'
62+
matrix='["thingy91x","nrf9151dk","ppk_thingy91x"]'
6363
else
6464
matrix='["thingy91x"]'
6565
fi
@@ -138,6 +138,14 @@ jobs:
138138
--check-uploaded \
139139
asset-tracker-template-${{ inputs.artifact_fw_version }}-${{ vars.DUT_DEVICE_TYPE }}-nrf91.elf
140140
141+
- name: Generate and Push RAM and FLASH Badges
142+
if: ${{ matrix.device == 'thingy91x' && inputs.is_scheduled }}
143+
continue-on-error: true
144+
working-directory: asset-tracker-template
145+
env:
146+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147+
run: ./tests/on_target/scripts/update_memory_badges.sh tests/on_target/artifacts/build_output_thingy91x.log
148+
141149
- name: Target Tests
142150
working-directory: asset-tracker-template/tests/on_target
143151
run: |
@@ -184,14 +192,6 @@ jobs:
184192
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
185193
run: ./tests/on_target/scripts/update_power_badge.sh
186194

187-
- name: Generate and Push RAM and FLASH Badges
188-
if: ${{ matrix.device == 'thingy91x' && inputs.is_scheduled }}
189-
continue-on-error: true
190-
working-directory: asset-tracker-template
191-
env:
192-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
193-
run: ./tests/on_target/scripts/update_memory_badges.sh tests/on_target/artifacts/build_output_thingy91x.log
194-
195195
- name: Results
196196
if: always()
197197
uses: pmeier/pytest-results-action@v0.7.1

0 commit comments

Comments
 (0)