From 511ed8530d7d687a18fc13b9191ef8673c0e4a4b Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Fri, 20 Sep 2024 09:23:17 +0200 Subject: [PATCH] Enable doctests --- .github/workflows/tests.yml | 16 ++++++++++++++++ pytest.ini | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9cd83fd05..e2b82422f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: | diff --git a/pytest.ini b/pytest.ini index 048f43276..9e80a78d6 100644 --- a/pytest.ini +++ b/pytest.ini @@ -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