Skip to content

Commit 308ce76

Browse files
committed
CI: paralelize tests between platforms
1 parent db2700b commit 308ce76

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

.github/workflows/micropython.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,8 @@ on:
66
branches: [main]
77

88
jobs:
9-
unit-tests:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-python@v5
14-
with:
15-
python-version: '3.13'
16-
- run: pip install -e .
17-
- run: python -m unittest discover tests/ -v
18-
199
micropython:
2010
runs-on: [self-hosted, Linux]
21-
needs: unit-tests
2211
strategy:
2312
fail-fast: false
2413
matrix:

.github/workflows/tests.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,32 @@ on:
77
branches: [main]
88

99
jobs:
10-
test:
11-
runs-on: ${{ matrix.os }}
10+
test-ubuntu:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
max-parallel: 1
14+
matrix:
15+
python-version: ["3.10", "3.14"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install package
26+
run: pip install .
27+
28+
- name: Run unit tests
29+
run: python -m unittest discover -v tests/
30+
31+
test-windows:
32+
runs-on: windows-latest
1233
strategy:
1334
max-parallel: 1
1435
matrix:
15-
os: [ubuntu-latest, windows-latest]
1636
python-version: ["3.10", "3.14"]
1737

1838
steps:

0 commit comments

Comments
 (0)