-
Notifications
You must be signed in to change notification settings - Fork 14
45 lines (42 loc) · 1.16 KB
/
ci-build.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
41
42
43
44
45
name: CI
on:
pull_request:
branches: [ master ]
jobs:
Code-Quality-Checks:
runs-on: ubuntu-latest
strategy:
matrix:
scripts:
- run-linter
- check-docstyle
- detect-dead-code
- detect-common-errors
- measure-cyclomatic-complexity
- measure-maintainability-index
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: ${{ matrix.scripts }}
run: bash qa/${{ matrix.scripts }}.sh;
Unit-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Run Unit Tests
run: |
pip install -U pip
pip install -r tests/requirements.txt
PYTHONPATH=`pwd` python "$(which pytest)" --cov=f8a_utils/ --cov-report=xml --cov-fail-under=90 -vv tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: 1073459c-863a-4ff3-9847-8acbeaeb25e1
file: ./coverage.xml