Skip to content

Commit b8205d5

Browse files
committed
feat: add workflow for linting, type-checking and testing
1 parent 68bfd16 commit b8205d5

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
ci:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: "3.12"
16+
- name: Upgrade pip
17+
run: pip install --upgrade pip
18+
- name: Install dependencies
19+
run: pip install ruff mypy pytest
20+
- name: Lint (ruff)
21+
run: ruff check --config=pyproject.toml src/
22+
- name: Type check (mypy)
23+
run: mypy --config-file=pyproject.toml src/
24+
- name: Run tests (pytest)
25+
run: pytest -v

0 commit comments

Comments
 (0)