Skip to content

Commit 36390d6

Browse files
committed
ci: add GitHub Actions workflow for running tests
1 parent 0b69448 commit 36390d6

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
permissions:
2+
contents: read
3+
name: Test
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
workflow_dispatch:
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
jobs:
14+
test:
15+
name: Python Tests
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version-file: ".python-version"
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v5
25+
with:
26+
enable-cache: true
27+
cache-dependency-glob: "uv.lock"
28+
- name: Install dependencies
29+
run: |
30+
uv venv
31+
uv sync --group dev --group test
32+
- name: Run tests
33+
run: |
34+
source .venv/bin/activate
35+
make test

0 commit comments

Comments
 (0)