Skip to content

Commit

Permalink
test: Added doctest to workflows/CI-CD.yml and deleted workflows/publ…
Browse files Browse the repository at this point in the history
…ish.yml and workflows/testpublish.yml
  • Loading branch information
pbrod committed Sep 11, 2024
1 parent 6429dfa commit 1ff7318
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 109 deletions.
Binary file modified .coverage
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# stop the build if there are Python syntax errors or undefined names
ruff check ./src/
- name: Test with pytest
run: poetry run pytest tests/ --cov=karney --cov-report=xml
run: poetry run pytest tests/ --cov=karney --cov-report=xml --doctest-modules
- name: Use Codecov to track coverage
uses: codecov/codecov-action@v4
if: matrix.python-version == '3.9'
Expand Down
48 changes: 0 additions & 48 deletions .github/workflows/publish.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/testpublish.yml

This file was deleted.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ select = ["E4", "E7", "E9", "E501", "F", "B", "Q"] #[, "I"]
[tool.ruff.format]
#docstring-code-format = true
docstring-code-line-length = 100

[tool.pytest.ini_options]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL", "ELLIPSIS"]

0 comments on commit 1ff7318

Please sign in to comment.