-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (29 loc) · 1.07 KB
/
main.yml
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
37
38
39
40
name: Main Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install repository
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -e ".[engines]"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install black mypy pylint isort pytest
- name: Check formatting with Black
run: python3 -m black --check . --config pyproject.toml
- name: Check types with MyPy
run: python3 -m mypy up_esb/ --config-file pyproject.toml --ignore-missing-imports
- name: Check code quality with Pylint
run: python3 -m pylint up_esb/ --rcfile pyproject.toml --fail-under=8.0
- name: Check imports with isort
run: python3 -m isort --check-only . --settings-path pyproject.toml
- name: Run tests with pytest
run: python3 -m pytest -v tests/