diff --git a/.github/workflows/modem__target-test.yml b/.github/workflows/modem__target-test.yml index 4de01e6cbd..f296a984d7 100644 --- a/.github/workflows/modem__target-test.yml +++ b/.github/workflows/modem__target-test.yml @@ -64,21 +64,22 @@ jobs: idf_target: "esp32s2" test: { app: usb_a7670_s2, path: examples/pppos_client } needs: build_esp_modem_tests - runs-on: - - self-hosted - - modem + runs-on: [self-hosted, modem] + container: + image: python:3.11-bookworm + options: --privileged # Privileged mode has access to serial ports env: TEST_DIR: components/esp_modem/${{ matrix.test.path }} - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true steps: - - name: Clear repository - run: | - sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/download-artifact@v3 with: name: modem_target_bin_${{ matrix.idf_target }}_${{ matrix.idf_ver }}_${{ matrix.test.app }} path: ${{ env.TEST_DIR }}/build + - name: Install Python packages + env: + PIP_EXTRA_INDEX_URL: "https://dl.espressif.com/pypi/" + run: pip install --prefer-binary cryptography pytest-embedded pytest-embedded-serial-esp pytest-embedded-idf pytest-custom_exit_code - name: Run Example Test on target working-directory: ${{ env.TEST_DIR }} run: |