|
15 | 15 | jobs:
|
16 | 16 | hardware-test:
|
17 | 17 | name: Hardware ${{ inputs.chip }} ${{ inputs.type }} tests
|
18 |
| - runs-on: [arduino, "${{ inputs.chip }}"] |
| 18 | + #runs-on: [arduino, "${{ inputs.chip }}"] |
| 19 | + runs-on: ubuntu-latest |
19 | 20 | env:
|
20 | 21 | id: ${{ github.event.pull_request.number || github.ref }}-${{ github.event.pull_request.head.sha || github.sha }}-${{ inputs.chip }}-${{ inputs.type }}
|
21 | 22 | container:
|
22 |
| - image: python:3.10.1-bullseye |
| 23 | + image: ubuntu:latest |
23 | 24 | options: --privileged
|
| 25 | + defaults: |
| 26 | + run: |
| 27 | + shell: bash |
24 | 28 | steps:
|
25 | 29 | - name: Check if already built
|
26 | 30 | if: ${{ github.event.pull_request.number != null }}
|
@@ -64,13 +68,12 @@ jobs:
|
64 | 68 | cd .github
|
65 | 69 | curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
|
66 | 70 |
|
67 |
| - # setup-python currently only works on ubuntu images |
68 |
| - # - uses: actions/setup-python@v5 |
69 |
| - # if: ${{ steps.check-tests.outputs.enabled == 'true' }} |
70 |
| - # with: |
71 |
| - # cache-dependency-path: tests/requirements.txt |
72 |
| - # cache: 'pip' |
73 |
| - # python-version: '3.10.1' |
| 71 | + - uses: actions/setup-python@v5 |
| 72 | + if: ${{ steps.check-tests.outputs.enabled == 'true' }} |
| 73 | + with: |
| 74 | + cache-dependency-path: tests/requirements.txt |
| 75 | + cache: 'pip' |
| 76 | + python-version: '3.x' |
74 | 77 |
|
75 | 78 | - name: Install dependencies
|
76 | 79 | if: ${{ steps.check-tests.outputs.enabled == 'true' }}
|
|
79 | 82 | pip install -r tests/requirements.txt --extra-index-url https://dl.espressif.com/pypi
|
80 | 83 |
|
81 | 84 | - name: Get binaries
|
| 85 | + if: ${{ steps.check-tests.outputs.enabled == 'true' }} |
82 | 86 | id: cache-build-binaries
|
83 | 87 | uses: actions/cache/restore@v4
|
84 |
| - if: ${{ steps.check-tests.outputs.enabled == 'true' }} |
85 | 88 | with:
|
86 | 89 | fail-on-cache-miss: true
|
87 | 90 | key: tests-${{ env.id }}-bin
|
|
0 commit comments