forked from adafruit/Adafruit_Wippersnapper_Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.22 KB
/
run-tests.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
# SPDX-FileCopyrightText: Brent Rubell for Adafruit Industries, 2024
#
# SPDX-License-Identifier: MIT
name: WipperSnapper Tests
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
test:
- test_offline
fail-fast: false
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Install Wokwi CI server
uses: wokwi/wokwi-ci-server-action@v1
- name: Install Wokwi CLI
run: curl -L https://wokwi.com/ci/install.sh | sh
- name: Test on Wokwi
run: pytest ${{ matrix.test }}.py --junitxml=report.xml
env:
WOKWI_CLI_TOKEN: ${{ secrets.WOKWI_CLI_TOKEN }}
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
test-results/**/*.xml