-
Notifications
You must be signed in to change notification settings - Fork 20
46 lines (39 loc) · 1.11 KB
/
checks.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
name: CI Code Checks
on: [pull_request]
permissions:
contents: write
jobs:
build:
name: code checks
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Checking formatting and analysing the code with pylint and flake8
run: make lint
- name: Running tests
run: make test
- name: Creating coverage folder
run: |
mkdir -p coverage
- name: Coverage Badge
uses: tj-actions/[email protected]
with:
output: coverage/coverage.svg
- name: Publish coverage report to coverage-badge branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: coverage-badge
folder: coverage
- name: Type checking with mypy
run: mypy --config setup.cfg src