Skip to content

Commit 632d15a

Browse files
committed
actions: add test job
1 parent 43c270b commit 632d15a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,36 @@ jobs:
5555
run: pio ci --board=teensy31 --lib="."
5656
env:
5757
PLATFORMIO_CI_SRC: ${{ matrix.example }}
58+
59+
test:
60+
runs-on: ubuntu-latest
61+
steps:
62+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
63+
- uses: actions/checkout@v2
64+
65+
- name: Cache pip
66+
uses: actions/cache@v2
67+
with:
68+
path: ~/.cache/pip
69+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
70+
restore-keys: ${{ runner.os }}-pip-
71+
72+
- name: Cache PlatformIO
73+
uses: actions/cache@v2
74+
with:
75+
path: ~/.platformio
76+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
77+
78+
- name: Set up Python
79+
uses: actions/setup-python@v2
80+
81+
- name: Install PlatformIO
82+
run: |
83+
python -m pip install --upgrade pip
84+
pip install --upgrade platformio
85+
86+
- name: Install library dependencies
87+
run: pio lib -g install ANT
88+
89+
- name: Run PlatformIO
90+
run: pio test -e native

0 commit comments

Comments
 (0)