forked from Breakthrough-Energy/PreREISE
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 915 Bytes
/
coverage.yml
File metadata and controls
41 lines (33 loc) · 915 Bytes
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: Code coverage
on:
push:
branches:
- 'develop'
jobs:
coverage:
runs-on: ubuntu-latest
name: Generate coverage report
steps:
- name: Checkout PreREISE
uses: actions/checkout@v2
with:
path: PreREISE
- name: Checkout PowerSimData
uses: actions/checkout@v2
with:
repository: Breakthrough-Energy/PowerSimData
path: PowerSimData
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- run: python -m pip install --upgrade pip tox
working-directory: PreREISE
- run: tox -e pytest-local -- --cov-report=xml
working-directory: PreREISE
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
name: codecov-prereise
fail_ci_if_error: true
directory: PreREISE