test timeout #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Test Application (Wokwi) | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
jobs: | |
env: | |
uses: ./.github/workflows/env.yaml | |
run-target: | |
name: Run Test App in simulation | |
runs-on: ubuntu-latest | |
needs: env | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: espressif/esp-idf-ci-action@v1 | |
with: | |
esp_idf_version: ${{ needs.env.outputs.esp_idf_version }} | |
target: esp32 | |
path: test_app | |
- name: Install the Wokwi CLI | |
run: curl -L https://wokwi.com/ci/install.sh | sh | |
- name: Install Python packages for PyTest | |
env: | |
PIP_PREFER_BINARY: true | |
PIP_INDEX_URL: "https://dl.espressif.com/pypi/" | |
PIP_EXTRA_INDEX_URL: "https://pypi.org/simple" | |
run: pip install -r test_app/requirements.txt | |
- name: Run Test App in Wokwi Simulation | |
working-directory: test_app | |
env: | |
WOKWI_CLI_TOKEN: ${{ secrets.WOKWI_CLI_TOKEN }} | |
run: | | |
pytest \ | |
--junit-xml=./test_app_results_esp32.xml \ | |
--embedded-services idf,wokwi \ | |
--target=esp32 | |
- name: Upload test results for publish-results job | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test_app_results_wokwi | |
path: test_app/*.xml | |
# publish-results: | |
# name: Publish Test App results | |
# needs: run-target | |
# runs-on: ubuntu-20.04 | |
# if: always() # (run even if the previous steps have failed) | |
# steps: | |
# - name: Download Test results | |
# uses: actions/download-artifact@v4 | |
# with: | |
# path: test_results | |
# - name: Publish Test Results | |
# uses: EnricoMi/publish-unit-test-result-action@v2 | |
# with: | |
# files: test_results/**/*.xml |