Skip to content

Commit

Permalink
ci(esp_tinyusb): Make a matrix from runners
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-marcisovsky committed Oct 8, 2024
1 parent f7abc6f commit 911258b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_and_run_test_app_usb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
matrix:
idf_ver: ["release-v5.0", "release-v5.1", "release-v5.2", "release-v5.3", "latest"]
idf_target: ["esp32s2"]
runs-on: [self-hosted, linux, docker, "${{ matrix.idf_target }}", "usb_host"]
runner: ["usb_host", "usb_device"]
runs-on: [self-hosted, linux, docker, "${{ matrix.idf_target }}", "${{ matrix.runner }}"]
container:
image: python:3.11-bookworm
options: --privileged # Privileged mode has access to serial ports
Expand All @@ -63,4 +64,4 @@ jobs:
PIP_EXTRA_INDEX_URL: "https://dl.espressif.com/pypi/"
run: pip install --only-binary cryptography pytest-embedded pytest-embedded-serial-esp pytest-embedded-idf pyserial pyusb
- name: Run USB Test App on target
run: pytest --embedded-services esp,idf --target=${{ matrix.idf_target }} -m "usb_host usb_device" --build-dir=build_${{ matrix.idf_target }}
run: pytest --embedded-services esp,idf --target=${{ matrix.idf_target }} -m ${{ matrix.runner }} --build-dir=build_${{ matrix.idf_target }}

0 comments on commit 911258b

Please sign in to comment.