Skip to content

Commit 32fac71

Browse files
committed
Add Github CI
1 parent 862bb17 commit 32fac71

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.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+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: ${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
tests:
15+
name: Python ${{ matrix.python-version }}
16+
runs-on: ubuntu-24.04
17+
18+
strategy:
19+
matrix:
20+
python-version:
21+
- '3.10'
22+
- '3.11'
23+
- '3.12'
24+
- '3.13'
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
allow-prereleases: true
33+
34+
- name: Install uv
35+
uses: astral-sh/setup-uv@v5
36+
with:
37+
enable-cache: true
38+
cache-dependency-glob: tests/requirements/*.txt
39+
40+
- name: Install dependencies
41+
run: uv pip install --system tox tox-uv
42+
43+
- name: Run tox targets for ${{ matrix.python-version }}
44+
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)

0 commit comments

Comments
 (0)