Skip to content

Commit a5cf2f1

Browse files
committed
Add workflow for testing.
1 parent c954808 commit a5cf2f1

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Run tests"
2+
3+
on:
4+
push:
5+
branches: [ $default-branch ]
6+
pull-request:
7+
branches: [ $default-branch ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.12", "3.13"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v6
26+
with:
27+
version: "latest"
28+
enable-cache: true
29+
cache-dependency-glob: uv.lock
30+
- name: Install dependencies
31+
run: |
32+
uv sync --locked --all-extras --dev
33+
- name: Run tests
34+
run: |
35+
uv run pytest

0 commit comments

Comments
 (0)