-
Notifications
You must be signed in to change notification settings - Fork 28
39 lines (32 loc) · 898 Bytes
/
test.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
name: tests
on:
push:
branches: [ bobbit-0.2.x ]
pull_request:
types: [opened, synchronize, reopened]
branches: [ bobbit-0.2.x ]
jobs:
build:
name: run tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Installs dependencies
run: |
python3 -m pip install -r requirements.txt
- name: Install and run Pylint
run: |
python3 -m pip install pylint
python3 -m pip install coverage
# Only will fail for actual errors
python3 -m pylint src/ -d "W,C,R"
- name: Runs tests
run: |
python3 -m coverage run -m unittest discover
python3 -m coverage html
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true