diff --git a/.github/workflows/build_and_run_test_app_usb.yml b/.github/workflows/build_and_run_test_app_usb.yml index 3f773e80..40192331 100644 --- a/.github/workflows/build_and_run_test_app_usb.yml +++ b/.github/workflows/build_and_run_test_app_usb.yml @@ -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 @@ -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 }}