-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 721 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (27 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#this workflow runs on every push and pull request, checks the code quality and runs the tests
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
quality:
name: code quality and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: install dependencies
run: pip install -e .[dev]
- name: ruff - linting
run: ruff check .
- name: ruff - formatting
run: ruff format --check .
- name: mypy - type checking
run: mypy app/
- name: pytest - unit tests
run: pytest