Skip to content

Commit f927060

Browse files
committed
ci: setup CI pipeline
1 parent f84f87e commit f927060

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI Pipeline
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ci:
7+
name: Continuous Integration
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v6
16+
with:
17+
enable-cache: true
18+
19+
- name: Install project
20+
run: uv sync --locked --all-extras --dev
21+
22+
- name: Check formatting
23+
run: uv run ruff format --check
24+
25+
- name: Check import sort
26+
run: uv run ruff check --select I
27+
28+
- name: Lint code
29+
run: uv run ruff check
30+
31+
- name: Run tests
32+
run: uv run pytest -v tests/

0 commit comments

Comments
 (0)