Skip to content

Commit 16f505a

Browse files
authored
Add CI workflow
1 parent 408e3d2 commit 16f505a

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+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.11", "3.12", "3.13"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install mypy pylint
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
- name: ruff
30+
uses: astral-sh/ruff-action@v3
31+
- name: mypy
32+
run: |
33+
mypy .
34+
- name: pylint
35+
run: |
36+
pylint -E .
37+
- name: build and inspect
38+
uses: hynek/build-and-inspect-python-package@v2

0 commit comments

Comments
 (0)