Skip to content

Commit

Permalink
ci(esp_tinyusb): Remove docker for CI run on target
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-marcisovsky committed Oct 30, 2024
1 parent 21d9e07 commit f893125
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build_and_run_test_app_usb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,22 @@ jobs:
idf_target: ["esp32s2"]
runner_tag: ["usb_host", "usb_device"]
runs-on: [self-hosted, linux, docker, "${{ matrix.idf_target }}", "${{ matrix.runner_tag }}"]
container:
image: python:3.11-bookworm
options: --privileged # Privileged mode has access to serial ports
#container:
# image: python:3.11-bookworm
# options: --privileged # Privileged mode has access to serial ports
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: usb_test_app_bin_${{ matrix.idf_ver }}
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python packages
env:
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 libusb
apt-get update && apt-get install libusb-1.0-0-dev udev -y
echo "ACTION==\"add\", SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"303a\", ATTRS{idProduct}==\"4040\", MODE=\"660\", TAG+=\"uaccess\"" > /etc/udev/rules.d/50-pyusb.rules
cat /etc/udev/rules.d/50-pyusb.rules
- name: Run USB Test App on target
run: pytest --embedded-services esp,idf --target=${{ matrix.idf_target }} -m ${{ matrix.runner_tag }} --build-dir=build_${{ matrix.idf_target }}

0 comments on commit f893125

Please sign in to comment.