-
Notifications
You must be signed in to change notification settings - Fork 32
42 lines (37 loc) · 1.01 KB
/
codecov.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
name: codecoverage
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
coverage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
env:
OS: ${{ matrix.os }}
PYTHON: '3.8'
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
cache: "pip"
cache-dependency-path: |
setup.py
test_requirements.txt
- name: Install res2df
run: |
pip install pip -U
pip install .[tests,ert]
- name: Generate coverage report and upload
run: |
pytest tests --disable-warnings --cov=res2df --cov-report=xml
# Uninstall packages that res2df supports not being installed:
pip uninstall --yes ert networkx opm
# Run tests again in cov-append-mode:
pytest tests --disable-warnings --cov=res2df --cov-report=xml --cov-append
bash <(curl -s https://codecov.io/bash)