-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (44 loc) · 1.15 KB
/
test.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
name: Run Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0, 0,12 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
firmware:
runs-on: ubuntu-latest
strategy:
matrix:
project_dir: [firmware/atom_echo_i2c_audio, firmware/atom_s3_i2c_display]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO Project
run: pio run -d ${{ matrix.project_dir }}
formatting:
name: Check Formatting
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install
run: pip install ruff
- name: Run Ruff
run: ruff check .