Skip to content

Commit 0412a64

Browse files
committed
feat: add GitHub Actions CI
1 parent fefa7aa commit 0412a64

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
quality:
11+
name: Code Quality
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.10"
22+
23+
- name: Install dependencies
24+
run: pip install ruff mypy pytest pytest-cov
25+
26+
- name: Ruff lint
27+
run: ruff check .
28+
29+
- name: Ruff format check
30+
run: ruff format --check .
31+
32+
- name: mypy
33+
run: mypy src/
34+
35+
- name: pytest
36+
run: pytest --cov=src --cov-fail-under=80

0 commit comments

Comments
 (0)