Skip to content

Commit 7fddc21

Browse files
committed
💚 Add CI linting and testing
1 parent 7805390 commit 7fddc21

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Code quality tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
11+
style-lint-and-test:
12+
13+
name: Style, lint, test
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ["3.10", "3.11", "3.12", "3.13"]
18+
19+
steps:
20+
21+
- name: Checkout Code
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- name: Install Rye
30+
uses: eifinger/setup-rye@v4
31+
with:
32+
version: "latest"
33+
34+
- name: Install Dependencies
35+
run: make setup
36+
37+
- name: Check the Code style
38+
run: make codestyle
39+
40+
- name: Lint the code
41+
run: make lint
42+
43+
- name: Type check the code
44+
run: make stricttypecheck
45+
46+
- name: Run unit tests
47+
run: make test
48+
49+
### style-lint-and-test.yaml ends here

0 commit comments

Comments
 (0)