Skip to content

Commit a717299

Browse files
committed
Add CI workflow
1 parent 3848310 commit a717299

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: Test
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
Build:
13+
name: KiCAD ${{ matrix.kicad-version }}
14+
15+
strategy:
16+
matrix:
17+
os:
18+
- Ubuntu
19+
kicad-version:
20+
- "8.0"
21+
- "9.0"
22+
23+
runs-on: ${{ matrix.os }}-latest
24+
container:
25+
image: kicad/kicad:${{ matrix.kicad-version }}
26+
options: --user root
27+
28+
steps:
29+
- name: 💾 Check out repository
30+
uses: actions/checkout@v4
31+
32+
- name: 🛠️ Set up build environment
33+
shell: bash
34+
run: |
35+
apt update && apt install -y python3-pip
36+
python3 -m pip install --break-system-packages --upgrade hatch
37+
38+
- name: 🔥 Test
39+
run: hatch -v run pytest -vv tests
40+
41+
concurrency:
42+
group: ${{ github.workflow }}-${{ github.ref }}
43+
cancel-in-progress: false

0 commit comments

Comments
 (0)