Skip to content

Commit

Permalink
hil: esp-idf: samples: add allure reports
Browse files Browse the repository at this point in the history
- Add pytest options for allure reports to ESP-IDF samples workflow.
- This uses the allure fixtures already available in the pytest-hil plugin

Signed-off-by: Mike Szczys <mike@golioth.io>
  • Loading branch information
szczys committed Sep 14, 2024
1 parent c4d7784 commit c999fa5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/hil_sample_esp-idf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ jobs:
env:
hil_board: ${{ inputs.hil_board }}
run: |
rm -rf allure-reports
source /opt/credentials/runner_env.sh
PORT_VAR=CI_${hil_board^^}_PORT
for sample in `find examples/esp_idf -type d -name pytest -exec dirname "{}" \;`
Expand All @@ -115,9 +116,19 @@ jobs:
--wifi-psk ${{ secrets[format('{0}_WIFI_PSK', runner.name)] }} \
--mask-secrets \
--timeout=600 \
--alluredir=allure-reports \
--platform esp-idf \
--runner-name ${{ runner.name }} \
|| EXITCODE=$?
done
exit $EXITCODE
- name: Upload reports
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: allure-reports-samples-espidf-${{ inputs.hil_board }}
path: allure-reports
retention-days: 1
- name: Erase flash
if: always()
shell: bash
Expand Down

0 comments on commit c999fa5

Please sign in to comment.