Skip to content

Commit 0d1dfee

Browse files
committed
Add a GitHub workflow to run unit tests
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent b0a6e5a commit 0d1dfee

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run unit tests
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-24.04
13+
14+
strategy:
15+
max-parallel: 4
16+
matrix:
17+
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install dependencies
29+
run: make dev
30+
31+
- name: Validate code format
32+
run: make check
33+
34+
- name: Run tests
35+
run: make test

0 commit comments

Comments
 (0)