Skip to content

Commit

Permalink
Add doctest to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed May 31, 2022
1 parent 784a631 commit c846247
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -21,6 +21,7 @@ jobs:
- { tox-env: py, python-version: "3.9", os: "ubuntu-latest" }
- { tox-env: py, python-version: "3.10", os: "ubuntu-latest" }
- { tox-env: py, python-version: "3.10", os: "ubuntu-latest", external: true }
- { tox-env: doctest, python-version: "3.10", os: "ubuntu-latest" }
- { tox-env: lint, python-version: "3.8", os: "ubuntu-latest" }

steps:
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
- name: Run tox
run: |
poetry run tox -e ${{ matrix.tox-env }} -- ${{ matrix.external && ' -m "external"' || '' }}
poetry run tox -e ${{ matrix.tox-env }} --${{ matrix.external && ' -m "external"' || '' }}${{ matrix.doctest && ' --doctest-modules singer_sdk' }}
- name: Upload coverage data
if: always() && (matrix.tox-env == 'py')
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Expand Up @@ -19,6 +19,10 @@ commands =
[testenv:test]
# Use default py interpreter

[testenv:doctest]
commands =
poetry run pytest --doctest-modules {posargs:singer_sdk}

[testenv:htmlcov]
# Launch local web browser with previously-captured pytest coverage results
whitelist_externals =
Expand Down

0 comments on commit c846247

Please sign in to comment.