Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit 762f6eb

Browse files
committed
Add github workflow for PR
1 parent 376f0eb commit 762f6eb

3 files changed

Lines changed: 37 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run tests and lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "**" # runs for all branches with PRs
7+
8+
jobs:
9+
lint-and-test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
21+
- name: Install uv
22+
run: |
23+
curl -LsSf https://astral.sh/uv/install.sh | sh
24+
echo "$HOME/.local/bin" >> $GITHUB_PATH
25+
26+
- name: Sync dependencies
27+
run: uv sync --extra dev
28+
29+
- name: Run Ruff linter
30+
run: uv run ruff check .
31+
32+
- name: Run tests with pytest
33+
run: uv run pytest -v

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ exclude = ["tests*"]
3434

3535
[tool.pytest.ini_options]
3636
pythonpath = ["."]
37+
38+
[tool.uv]
39+
package = true

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)