diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index d6fa1d1..63016d0 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -32,7 +32,7 @@ ] include: - environment-file: ci/py312-latest.yaml - os: macos-latest + os: macos-13 # Intel - environment-file: ci/py312-latest.yaml os: macos-14 # Apple Silicon - environment-file: ci/py312-latest.yaml @@ -72,8 +72,17 @@ --cov-append \ --cov-report term-missing \ --cov-report xml . \ - --doctest-modules - + + - name: run doctests (dev only) + if: contains(matrix.env, "dev") + run: | + pytest \ + fastpair/ \ + --verbose \ + -r a \ + --color yes \ + --doctest-only + - name: codecov uses: codecov/codecov-action@v4 with: diff --git a/ci/py312-dev.yaml b/ci/py312-dev.yaml index 65996a7..8e2221d 100644 --- a/ci/py312-dev.yaml +++ b/ci/py312-dev.yaml @@ -8,6 +8,7 @@ dependencies: # testing - pytest - pytest-cov + - pytest-doctestplus - pip: # nightly builds - --pre \ diff --git a/pyproject.toml b/pyproject.toml index 39ef5a3..0ac6a18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,7 @@ tests = [ "pre-commit", "pytest", "pytest-cov", + "pytest-doctestplus", "ruff", "setuptools_scm", ]