Skip to content

Commit 2bdd756

Browse files
committed
feat: Add GitHub Actions workflow for tests
1 parent 7224525 commit 2bdd756

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
name: Run Tests
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v5
16+
with:
17+
enable-cache: true
18+
cache-dependency-glob: "uv.lock"
19+
20+
- name: Install system dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y libtango-dev
24+
25+
- name: Set up Python
26+
run: uv python install
27+
28+
- name: Install dependencies
29+
run: uv sync --dev
30+
31+
- name: Lint with ruff
32+
run: uv run ruff check .
33+
34+
- name: Run tests
35+
run: uv run pytest

0 commit comments

Comments
 (0)