forked from equinor/ert
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 992 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
43
44
name: Python doctest
on:
push:
branches:
- main
- 'version-**'
tags: "*"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
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
dev-requirements.txt
- run: pip install -e .
- name: Install with dependencies
run: |
pip install -r dev-requirements.txt
- name: Test doctest
run: |
# dark storage assumes it is a started service so cannot be excuded
# by pytest blindly
pytest --doctest-modules src/ --ignore src/ert/dark_storage