Skip to content

Commit

Permalink
ci: Publish test results
Browse files Browse the repository at this point in the history
  • Loading branch information
tore-espressif committed Feb 28, 2022
1 parent 84f7d0b commit a0cc600
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/build_and_run_test_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: test_app_bin_${{ matrix.idf_target }}_${{ matrix.idf_ver }}
path: |
test_app/build/flash_image.bin
path: test_app/build/flash_image.bin

#run-qemu: # Keeping this here for future reference. QEMU tests are not passing now
# Keeping this here for future reference. QEMU tests are not passing now
#run-qemu:
# name: Run Test App in QEMU
# needs: build
# strategy:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
runs-on: [self-hosted, linux, docker, esp32] # Unfortunately `${{ matrix.idf_target }}` is not accepted here
container:
image: python:3.7-slim-buster
options: --privileged
options: --privileged # Privileged mode has access to serial ports
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -89,4 +89,23 @@ jobs:
run: python -m esptool --chip ${{ matrix.idf_target }} write_flash 0x0 test_app/build/flash_image.bin
- name: Run Test App on target
working-directory: test_app
run: pytest -s --junit-xml=./test_app_results.xml --embedded-services esp --target=${{ matrix.idf_target }}
run: pytest -s --junit-xml=./test_app_results_${{ matrix.idf_target }}_${{ matrix.idf_ver }}.xml --embedded-services esp --target=${{ matrix.idf_target }}
- uses: actions/upload-artifact@v2
with:
name: test_app_results_${{ matrix.idf_target }}_${{ matrix.idf_ver }}
path: test_app/*.xml

publish-results:
name: Publish Test App results
needs: run-target
if: always() # Run even if the previous step failed
runs-on: ubuntu-20.04
steps:
- name: Download Test results
uses: actions/download-artifact@v2
with:
path: test_results
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: test_results/**/*.xml
1 change: 0 additions & 1 deletion test_app/sdkconfig.defaults.esp32c3

This file was deleted.

0 comments on commit a0cc600

Please sign in to comment.