Skip to content

Commit 2c121db

Browse files
committed
add CI
1 parent bb5a993 commit 2c121db

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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-24.04
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.12.3"
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install ruff
26+
27+
- name: Run Ruff linter
28+
run: |
29+
ruff check . \
30+
--select ALL \
31+
--ignore F401,W391 \
32+
--line-length 88
33+
34+
- name: Run Ruff formatter
35+
run: |
36+
ruff format . \
37+
--line-length 88 \
38+
--exclude migrations,venv

0 commit comments

Comments
 (0)