Skip to content

Commit 1059124

Browse files
committed
Move unit testing to a separate workflow
1 parent 8719551 commit 1059124

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/examples.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,3 @@ jobs:
4646
- name: Build examples
4747
run: |
4848
pio run -d ${{ matrix.example }}
49-
- name: Build unit tests
50-
run: |
51-
pio test -d "examples/espidf-hello-world" -e esp32dev --without-uploading --without-testing

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Unit Testing"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macos-latest]
11+
python-version: [3.7]
12+
example:
13+
- "examples/espidf-hello-world"
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
submodules: "recursive"
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -U https://github.com/platformio/platformio/archive/develop.zip
27+
pio pkg install --global --platform symlink://.
28+
- name: Build test
29+
run: |
30+
pio test -d ${{ matrix.example }} --without-uploading --without-testing

0 commit comments

Comments
 (0)