Skip to content

Commit f77d1bf

Browse files
committed
Add actions
1 parent d20093e commit f77d1bf

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
name: Run tests (Python ${{ matrix.python-version }})
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.8", "3.12"]
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Install dependencies
23+
run: pip install .[test]
24+
25+
- name: Run pytest
26+
run: pytest
27+
28+
lint:
29+
name: Run lint
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- name: Set up Python
35+
uses: actions/setup-python@v5
36+
with:
37+
python-version: 3.12
38+
39+
- name: Install dependencies for lint
40+
run: pip install .[test]
41+
42+
- name: Run make lint
43+
run: make lint
44+

0 commit comments

Comments
 (0)