Skip to content

Commit 706f22c

Browse files
committed
Add test in CI
1 parent fae7639 commit 706f22c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
paths:
7+
- ".github/workflows/test.yml"
8+
- "**.py"
9+
- "uv.lock"
10+
- "pyproject.toml"
11+
pull_request:
12+
paths:
13+
- ".github/workflows/test.yml"
14+
- "**.py"
15+
- "uv.lock"
16+
- "pyproject.toml"
17+
18+
jobs:
19+
test:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
24+
os: [ubuntu-latest, macos-latest, windows-latest]
25+
runs-on: ${{ matrix.os }}
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Set up Python ${{ matrix.python-version }}
29+
- name: Install uv and set the python version
30+
uses: astral-sh/setup-uv@v5
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Install the project
34+
run: uv sync --all-extras --dev
35+
- name: Run tests
36+
run: uv run pytest

0 commit comments

Comments
 (0)