-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.07 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
name: Run CI
on: [ push, pull_request ]
jobs:
build:
name: Run pylint and tests
runs-on: ubuntu-latest
steps:
- name: Checkout git repository including submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Setup pip, install dependencies with test and linting requirements
run: |
python -m pip install --upgrade pip
pip install --upgrade -r ./tests/requirements_test.txt
pip install --force-reinstall -e .
- name: Analysing the code with black
run: |
black .
- name: Analysing the code with pylint
run: |
pylint . --rcfile .pylintrc
- name: Test using unittest and run coverage
run: |
TQDM_DISABLE=1 coverage run -m unittest discover -s ./tests/ -p "test__*.py"
- name: Create Coverage Report
run: |
coverage xml --quiet
coverage report