Skip to content

Commit 0e5b318

Browse files
committed
Merge branch 'test_ci'
2 parents 575a415 + 6633e65 commit 0e5b318

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/hw.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ on:
1515
jobs:
1616
hardware-test:
1717
name: Hardware ${{ inputs.chip }} ${{ inputs.type }} tests
18-
runs-on: [arduino, "${{ inputs.chip }}"]
18+
#runs-on: [arduino, "${{ inputs.chip }}"]
19+
runs-on: ubuntu-latest
1920
env:
2021
id: ${{ github.event.pull_request.number || github.ref }}-${{ github.event.pull_request.head.sha || github.sha }}-${{ inputs.chip }}-${{ inputs.type }}
2122
container:
22-
image: python:3.10.1-bullseye
23+
image: ubuntu:latest
2324
options: --privileged
25+
defaults:
26+
run:
27+
shell: bash
2428
steps:
2529
- name: Check if already built
2630
if: ${{ github.event.pull_request.number != null }}
@@ -64,13 +68,12 @@ jobs:
6468
cd .github
6569
curl https://codeload.github.com/${{ github.repository }}/tar.gz/master | tar -xz --strip=2 arduino-esp32-master/.github
6670
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'
7477

7578
- name: Install dependencies
7679
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
@@ -79,9 +82,9 @@ jobs:
7982
pip install -r tests/requirements.txt --extra-index-url https://dl.espressif.com/pypi
8083
8184
- name: Get binaries
85+
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
8286
id: cache-build-binaries
8387
uses: actions/cache/restore@v4
84-
if: ${{ steps.check-tests.outputs.enabled == 'true' }}
8588
with:
8689
fail-on-cache-miss: true
8790
key: tests-${{ env.id }}-bin

0 commit comments

Comments
 (0)