Skip to content

Commit e9d3653

Browse files
committed
add ci
Signed-off-by: Peter Jausovec <[email protected]>
1 parent 39430fb commit e9d3653

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- uses: astral-sh/setup-uv@v7
19+
with:
20+
enable-cache: true
21+
22+
- name: Install dependencies
23+
run: uv sync --dev
24+
25+
- name: Ruff check
26+
run: uv run ruff check .
27+
28+
- name: Ruff format check
29+
run: uv run ruff format --check .
30+
31+
test:
32+
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
python-version: ["3.11", "3.12", "3.13"]
36+
steps:
37+
- uses: actions/checkout@v6
38+
39+
- uses: astral-sh/setup-uv@v7
40+
with:
41+
enable-cache: true
42+
43+
- name: Install Python ${{ matrix.python-version }}
44+
run: uv python install ${{ matrix.python-version }}
45+
46+
- name: Install dependencies
47+
run: uv sync --dev --python ${{ matrix.python-version }}
48+
49+
- name: Run tests
50+
run: uv run pytest -m "not integration and not e2e" --tb=short -q

0 commit comments

Comments
 (0)