Skip to content

Commit

Permalink
v2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Sep 11, 2024
1 parent 031442f commit f9afc28
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 39 deletions.
17 changes: 0 additions & 17 deletions .coveragerc

This file was deleted.

10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: coverage-data-${{ matrix.python-version }}-${{ matrix.django-version }}
path: '.coverage*'
path: '${{ github.workspace }}/.coverage.*'
include-hidden-files: true
if-no-files-found: error

coverage:
name: Coverage
Expand All @@ -71,10 +73,14 @@ jobs:
- name: Download data
uses: actions/download-artifact@v4
with:
pattern: coverage-data*
path: ${{ github.workspace }}
pattern: coverage-data-*
merge-multiple: true

- name: Combine coverage and fail if it's <100.0%
run: |
python -m coverage combine
python -m coverage html --skip-covered --skip-empty
python -m coverage report --fail-under=100.0
echo "## Coverage summary" >> $GITHUB_STEP_SUMMARY
python -m coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

* *2.3.3* (2024-09-11)
* Fixed coverage setup due to GitHub changes

* *2.3.2* (2024-09-11)
* Fixed package name

Expand Down
2 changes: 1 addition & 1 deletion django_pony_express/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Class-based emails including a test suite for Django"""

__version__ = "2.3.2"
__version__ = "2.3.3"
36 changes: 35 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dev = [
'freezegun~=1.3',
'pytest-django~=4.7',
'pytest-mock~=3.12',
'coverage~=7.3',
'coverage~=7.6',
'pre-commit~=3.7',
'ruff~=0.4',
'sphinx~=7.1',
Expand Down Expand Up @@ -202,3 +202,37 @@ python_files = [
"test_*.py",
"*_tests.py",
]

[tool.coverage.run]
branch = true
parallel = true
source = [
"django_pony_express",
"tests",
]
omit = [
"setup.py",
"*_test.py",
"tests.py",
"testapp/*",
"tests/*",
]

[tool.coverage.report]
precision = 2
show_missing = true
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't check type hinting imports
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
]

[tool.coverage.path]
source = [
"django_pony_express",
".tox/**/site-packages",
]
18 changes: 0 additions & 18 deletions setup.cfg

This file was deleted.

0 comments on commit f9afc28

Please sign in to comment.