-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 810 Bytes
/
ci.yml
File metadata and controls
34 lines (26 loc) · 810 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
name: Continuous integration
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install requirements
run: pip install -r requirements.txt
- name: Run Black
run: black --check --config=pyproject.toml .
- name: Run Ruff
run: ruff check --config pyproject.toml .
# - name: Run Mypy
# run: mypy --config-file=pyproject.toml .
# TODO uncomment when python files
# - name: Run unit-tests
# run: pytest --cov=<FOLDER> --cov-report term-missing --durations=5 --disable-warnings tests/
# TODO uncomment when unit tests