Skip to content

Commit 35039b3

Browse files
committed
Merge branch 'ci/hw_fix'
2 parents 575a415 + f3c9b3f commit 35039b3

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/hw.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ jobs:
1919
env:
2020
id: ${{ github.event.pull_request.number || github.ref }}-${{ github.event.pull_request.head.sha || github.sha }}-${{ inputs.chip }}-${{ inputs.type }}
2121
container:
22-
image: python:3.10.1-bullseye
22+
image: ubuntu:latest
2323
options: --privileged
24+
defaults:
25+
run:
26+
shell: bash
2427
steps:
2528
- name: Check if already built
2629
if: ${{ github.event.pull_request.number != null }}
@@ -64,13 +67,12 @@ jobs:
6467
cd .github
6568
curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
6669
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'
70+
- uses: actions/setup-python@v5
71+
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
72+
with:
73+
cache-dependency-path: tests/requirements.txt
74+
cache: 'pip'
75+
python-version: '3.x'
7476

7577
- name: Install dependencies
7678
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
@@ -79,9 +81,9 @@ jobs:
7981
pip install -r tests/requirements.txt --extra-index-url https://dl.espressif.com/pypi
8082
8183
- name: Get binaries
84+
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
8285
id: cache-build-binaries
8386
uses: actions/cache/restore@v4
84-
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
8587
with:
8688
fail-on-cache-miss: true
8789
key: tests-${{ env.id }}-bin

0 commit comments

Comments
 (0)