Skip to content

Commit b9f28ad

Browse files
committed
add ruff to the ci
1 parent 2b367a6 commit b9f28ad

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: astral-sh/setup-uv@v4
15+
- run: uv sync --dev
16+
- run: uv run ruff check .
17+
- run: uv run ruff format --check .
18+
19+
test:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: astral-sh/setup-uv@v4
24+
- name: Install bubblewrap
25+
run: sudo apt-get update && sudo apt-get install -y bubblewrap
26+
- run: uv sync --dev
27+
- run: uv run pytest

0 commit comments

Comments
 (0)