-
Notifications
You must be signed in to change notification settings - Fork 23
56 lines (45 loc) · 1.41 KB
/
selftest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: selfhosted_test
on:
workflow_dispatch:
schedule:
- cron: "55 * * * *"
push:
paths:
- .github/workflows/selftest.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
isalive:
runs-on: [self-hosted, mpremote, X64]
env:
ARCH: X64
# ARCH: ARM64
strategy:
max-parallel: 1 # only one version at a time
fail-fast: false # keep on trying each version even if one fails
steps:
- name: Checkout stubs repo
uses: actions/checkout@v4
- name: Set up Python (most platforms)
if: ${{ env.ARCH != 'ARM64' }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Set up Python (Linux-ARM64)
if: ${{ env.ARCH == 'ARM64' }}
uses: deadsnakes/[email protected]
with:
python-version: "3.11"
- name: Install dependencies
run: |
# pipx install poetry
pip install -U -r requirements.txt
- name: Patch mpremote/mip.py
continue-on-error: true
run: |
MODULE_LOCATION=$(pip show -f mpremote | grep Location | cut -d' ' -f2)
patch --forward $MODULE_LOCATION/mpremote/mip.py ./mpremote_mip.patch || true
- name: Get ${{ matrix.version }} firmwares for flashing
run: |
mpflash list