Skip to content

Commit

Permalink
Enable doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Sep 20, 2024
1 parent bdd0393 commit 511ed85
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ jobs:
conda info --all
conda list
- name: Running doctests
shell: bash -l {0}
run: |
pytest grayskull \
-vv \
-n 0 \
-m "serial" \
--color=yes \
--cov=./ \
--cov-append \
--cov-report html:coverage-serial-html \
--cov-report xml:coverage-serial.xml \
--cov-config=.coveragerc \
--junit-xml=Linux-py${{ matrix.py_ver }}-serial.xml \
--junit-prefix=Linux-py${{ matrix.py_ver }}-serial
- name: Running serial tests
shell: bash -l {0}
run: |
Expand Down
4 changes: 2 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[pytest]
junit_family=xunit2
junit_duration_report=call
addopts = -ra -q
testpaths = tests
addopts = -ra -q --doctest-modules
testpaths = grayskull tests
markers =
serial: Mark for tests which cannot be executed in parallel
github: Tests which need to communicate with github and might reach the limit of github requisitions

0 comments on commit 511ed85

Please sign in to comment.