Skip to content

Commit 444ce9b

Browse files
committed
Add GH action for tests
1 parent fda44bd commit 444ce9b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test
2+
on: [push]
3+
jobs:
4+
build:
5+
name: continuous-integration
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
python-version:
10+
- "3.9"
11+
- "3.10"
12+
- "3.11"
13+
- "3.12"
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install uv and set the python version
19+
uses: astral-sh/setup-uv@v5
20+
with:
21+
enable-cache: true
22+
cache-dependency-glob: "uv.lock"
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install the project
26+
run: uv sync --all-extras --dev
27+
28+
- name: Run tests
29+
run: uv run pytest
30+
31+
- name: Minimize uv cache
32+
run: uv cache prune --ci

0 commit comments

Comments
 (0)