-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 1014 Bytes
/
checks.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
name: Checks
on: [push, pull_request]
jobs:
Test:
runs-on: ubuntu-latest
env:
CODECOV_UPLOADER: codecov
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install dependencies
run: |
pip install --user 'click<8.0.0'
pip install --user covimerage==0.2.1
- name: Run tests
shell: bash
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
./run_tests.sh --profile
- name: Generate coverage report
run: |
set -eo pipefail
profile_file=$(ls | grep 'profile_file' | sort | head -n 1)
python -m covimerage write_coverage ${profile_file}
sed -i "s,/testplugin/,$PWD/,g" .coverage_covimerage
python -m covimerage -vv xml
python -m covimerage report -m
- name: Upload coverage report
uses: codecov/codecov-action@v2.1.0
with:
fail_ci_if_error: true
verbose: true