-
Notifications
You must be signed in to change notification settings - Fork 8
56 lines (54 loc) · 1.79 KB
/
coverage.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: Coverage
on:
push:
pull_request:
paths:
- progpy
jobs:
coverage:
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: pip-cache
- name: Install additional dependencies
run: |
pip install coverage
pip install importlib_metadata
- name: Update
run: pip install --upgrade --upgrade-strategy eager -e .
- name: Run coverage
run: |
coverage run -m tests.test_base_models
coverage run -a -m tests.test_battery
coverage run -a -m tests.test_calc_error
coverage run -a -m tests.test_centrifugal_pump
coverage run -a -m tests.test_composite
coverage run -a -m tests.test_datasets
coverage run -a -m tests.test_dict_like_matrix_wrapper
coverage run -a -m tests.test_direct
coverage run -a -m tests.test_estimate_params
coverage run -a -m tests.test_ensemble
coverage run -a -m tests.test_linear_model
coverage run -a -m tests.test_pneumatic_valve
coverage run -a -m tests.test_powertrain
coverage run -a -m tests.test_predictors
coverage run -a -m tests.test_serialization
coverage run -a -m tests.test_sim_result
coverage run -a -m tests.test_state_estimators
coverage run -a -m tests.test_uav_model
coverage run -a -m tests.test_uav_model
coverage xml -i
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3