From c999fa543f7457faec3f00aa499fbc4368b3db2e Mon Sep 17 00:00:00 2001 From: Mike Szczys Date: Fri, 13 Sep 2024 20:30:27 -0500 Subject: [PATCH] hil: esp-idf: samples: add allure reports - 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 --- .github/workflows/hil_sample_esp-idf.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/hil_sample_esp-idf.yml b/.github/workflows/hil_sample_esp-idf.yml index faf67c10..4d1f23b5 100644 --- a/.github/workflows/hil_sample_esp-idf.yml +++ b/.github/workflows/hil_sample_esp-idf.yml @@ -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 "{}" \;` @@ -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