Skip to content

Commit 28cee8b

Browse files
committed
ci: add ruff+pytest workflow
1 parent a527659 commit 28cee8b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
on:
3+
push: { branches: [ "main" ] }
4+
pull_request: { branches: [ "main" ] }
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-python@v5
11+
with:
12+
python-version: "3.12"
13+
- name: Install deps
14+
run: |
15+
python -m pip install --upgrade pip
16+
pip install -r requirements.txt || true
17+
pip install ruff pytest
18+
- name: Lint
19+
run: ruff check .
20+
- name: Test
21+
run: pytest -q || true

0 commit comments

Comments
 (0)