Add doctest support

This commit is contained in:
Andras Schmelczer 2022-07-04 14:22:00 +02:00
parent 411af60e57
commit 134fc780d4
5 changed files with 10 additions and 20 deletions

View file

@ -27,14 +27,15 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools pytest pytest-cov pytest-subtests pytest-asyncio
python3 -m pip install --upgrade pip
pip install --upgrade --requirement dev-requirements.txt
pip install --upgrade .
- name: Check code and formatting
run: scripts/check-python.sh .
- name: Run tests
run: python3 -m pytest --cov=. --cov-report=xml --junit-xml pytest.xml --asyncio-mode=strict || true
run: python3 -m pytest --doctest-modules --cov=. --cov-report=xml --junit-xml pytest.xml --asyncio-mode=strict || true
- name: Upload results
if: always()