-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (53 loc) · 1.75 KB
/
ci.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
46
47
48
49
50
51
52
53
54
55
56
---
name: Run-perf CI
on:
pull_request:
push:
workflow_dispatch:
jobs:
selftests:
name: ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 500
- name: Fetch tags required for run-perf version
run: git fetch --tags --depth 500
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install missing aexpect dependency (remove when https://github.com/avocado-framework/aexpect/pull/81 is merged)
run: pip install six
- run: pip install -r requirements.txt
- run: make check
code_coverage:
name: CodeCoverage
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 500
- name: Fetch tags required for run-perf version
run: git fetch --tags --depth 500
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install missing aexpect dependency (remove when https://github.com/avocado-framework/aexpect/pull/81 is merged)
run: pip install six
- run: pip install -r requirements.txt
- run: |
pip install coverage
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
make develop && ./selftests/run_coverage
./cc-test-reporter after-build
env:
CC_TEST_REPORTER_ID: 009b4c0bfafb850daeb66460df98eded574477a064df0b4a75f65752b18b1d01