-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.14 KB
/
ci.yaml
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
41
42
43
44
45
46
47
48
49
50
name: Package CI
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.7
- 3.8
- 3.9
steps:
- uses: actions/checkout@v2
- name: Python ${{ matrix.python-version }} Setup
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip install poetry
poetry install
- name: Run flake8
run: |
poetry run pflake8 . --config pyproject.toml
- name: Run pylint
run: |
poetry run pylint covcheck --rcfile pyproject.toml
poetry run pylint tests --rcfile pyproject.toml --disable C0114,C0115,C0116,R0201,W0212
- name: Run mypy
run: |
poetry run mypy . --config pyproject.toml
- name: Run pytest
run: |
poetry run pytest tests --cov=covcheck --cov-report=html --cov-report=xml --cov-branch
- name: Check Coverage
run: |
poetry run covcheck coverage.xml --config pyproject.toml