Skip to content

Commit

Permalink
dont do pytest doctest-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Feb 22, 2024
1 parent 68db693 commit 508679f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ jobs:
python-version: "3.12"
cache: "pip" # caching pip dependencies
- run: pip install .[dev]
- run: black .
- run: black . --check
- run: pyright -p pyproject.toml
- run: pip uninstall -y backoffice # leave only dependencies, so pytest doctest-modules imports local files and not from site-packages
- run: pytest
- name: export documentation
if: ${{ github.ref == 'ref/head/main' }}
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ typeCheckingMode = "strict"
useLibraryCodeForTypes = true

[tool.pytest.ini_options]
addopts = "--capture=no --doctest-modules --failed-first"
testpaths = ["backoffice", "tests"]
addopts = "--capture=no --failed-first"
testpaths = ["tests"]

0 comments on commit 508679f

Please sign in to comment.