Skip to content

Commit

Permalink
doctests only for dev CI - #74
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Jul 11, 2024
1 parent b412800 commit 795558c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions ci/py312-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
# testing
- pytest
- pytest-cov
- pytest-doctestplus
- pip:
# nightly builds
- --pre \
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ tests = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-doctestplus",
"ruff",
"setuptools_scm",
]
Expand Down

0 comments on commit 795558c

Please sign in to comment.