Skip to content

Commit b31cbfb

Browse files
committed
ci: 🎡 add gha job
1 parent bef15a4 commit b31cbfb

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/python-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.11"
20+
21+
- name: Set up uv
22+
uses: astral-sh/setup-uv@v1
23+
24+
- name: Install dependencies
25+
run: uv pip install .[dev]
26+
27+
- name: Run ruff format check
28+
run: ruff format --check .
29+
30+
- name: Run pytest
31+
run: pytest

0 commit comments

Comments
 (0)