Skip to content

Commit

Permalink
github: Add test results
Browse files Browse the repository at this point in the history
Adds a short test result summary to the actions page.

Signed-off-by: Jorgen Kvalvaag <[email protected]>
  • Loading branch information
jorgenmk committed Aug 28, 2024
1 parent 0ed53c6 commit afc9746
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/on_target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,22 @@ jobs:
- name: Run UART tests
working-directory: thingy91x-oob/tests/on_target
run: |
pytest -s -v -m "dut1 and uart" tests --firmware-hex artifacts/hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-debug-app.hex
mkdir -p results
pytest -s -v -m "dut1 and uart" \
--junit-xml=results/test-results-uart.xml \
--firmware-hex artifacts/hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-debug-app.hex \
tests
env:
SEGGER: ${{ secrets.SEGGER_DUT_1 }}

- name: Run FOTA tests
if: ${{ inputs.run_fota_tests }}
working-directory: thingy91x-oob/tests/on_target
run: |
pytest -s -v -m "dut1 and fota" tests --firmware-hex artifacts/hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-debug-app.hex
pytest -s -v -m "dut1 and fota" \
--junit-xml=results/test-results-fota.xml \
--firmware-hex artifacts/hello.nrfcloud.com-${{ inputs.artifact_fw_version }}-thingy91x-debug-app.hex \
tests
env:
SEGGER: ${{ secrets.SEGGER_DUT_1 }}
IMEI: ${{ secrets.IMEI_DUT_1 }}
Expand All @@ -101,7 +108,7 @@ jobs:
if: ${{ inputs.run_dfu_tests }}
working-directory: thingy91x-oob/tests/on_target
run: |
pytest -s -v -m dut2 tests
pytest -s -v -m dut2 --junit-xml=results/test-results-dfu.xml tests
env:
SEGGER_NRF53: ${{ secrets.SEGGER_DUT_2_EXT_DBG }}
SEGGER_NRF91: ${{ secrets.SEGGER_DUT_2_NRF91 }}
Expand All @@ -118,3 +125,12 @@ jobs:
working-directory: thingy91x-oob
run: |
python3 ./tests/on_target/utils/thingy91x_dfu.py --check-nrf53-version --serial THINGY91X_${{ secrets.UART_DUT_2 }} 2>&1 >/dev/null | grep "S1: 1"
- name: Results
if: always()
uses: pmeier/[email protected]
with:
path: thingy91x-oob/tests/on_target/results/*.xml
summary: true
fail-on-empty: true
title: OOB FW Test Results

0 comments on commit afc9746

Please sign in to comment.