Remove setup.cfg, use pyproject.toml instead #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |