forked from equinor/ert
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 967 Bytes
/
doctest.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: Python doctest
on:
push:
branches:
- main
- 'version-**'
tags: "*"
pull_request:
jobs:
python-doctest:
name:
timeout-minutes: 40
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
id: setup_python
with:
python-version: '3.11'
cache: "pip"
cache-dependency-path: |
setup.py
pyproject.toml
- run: pip install -e ".[dev]"
- name: Test doctest
run: |
# dark storage assumes it is a started service so cannot be excuded
# by pytest blindly
pytest --doctest-modules --cov=ert --cov-report=xml:cov.xml src/ --ignore src/ert/dark_storage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: cov.xml