Skip to content

Commit

Permalink
Update from copier (2024-10-11T04:21:53)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 11, 2024
1 parent 9f6568a commit f3081ef
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: f8b63c7
_commit: 33cc159
_src_path: https://github.com/python-project-templates/base.git
add_extension: rust
email: 3105306+timkpaine@users.noreply.github.com
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:

- name: Checks
run: make checks
if: ${{ matrix.os == 'ubuntu-latest' }}
if: matrix.os == 'ubuntu-latest'

- name: Build
run: make build
Expand All @@ -88,33 +88,44 @@ jobs:
- name: Upload test results (Python)
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
path: junit.xml
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
path: |
**/junit.xml
if: ${{ always() }}

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: |
**/junit.xml
if: ${{ matrix.os == 'ubuntu-latest' }}
if: matrix.os == 'ubuntu-latest'

- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Make dist
run: |
make dist-rust
make dist-py-sdist
make dist-py-wheel
make dist-check
<<<<<<< before updating
if: ${{ matrix.os == 'ubuntu-latest' }}
=======
if: matrix.os == 'ubuntu-latest'
>>>>>>> after updating

- name: Make dist
run: |
make dist-py-wheel
make dist-check
<<<<<<< before updating
if: ${{ matrix.os != 'ubuntu-latest' }}
=======
if: matrix.os != 'ubuntu-latest'
>>>>>>> after updating

- uses: actions/upload-artifact@v4
with:
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,17 @@ annotate: ## run python type annotation checks with mypy
#########
.PHONY: test-py tests-py coverage-py
test-py: ## run python tests
<<<<<<< before updating
python -m pytest -v rust_template/tests --junitxml=junit.xml
=======
python -m pytest -v rust_template/tests
>>>>>>> after updating

# alias
tests-py: test-py

coverage-py: ## run python tests and collect test coverage
python -m pytest -v rust_template/tests --junitxml=junit.xml --cov=rust_template --cov-branch --cov-fail-under=50 --cov-report term-missing --cov-report xml
python -m pytest -v rust_template/tests --cov=rust_template --cov-report term-missing --cov-report xml

.PHONY: test-rust tests-rust coverage-rust
test-rust: ## run rust tests
Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,25 @@ archs = "x86_64 arm64"
environment = {PATH="$UserProfile\\.cargo\bin;$PATH"}
archs = "AMD64 x86"

<<<<<<< before updating
=======
[tool.coverage.run]
branch = true
omit = [
"rust_template/tests/integration/",
]
[tool.coverage.report]
exclude_also = [
"raise NotImplementedError",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
fail_under = 50

>>>>>>> after updating
[tool.pytest.ini_options]
addopts = ["-vvv", "--junitxml=junit.xml"]
asyncio_mode = "strict"
testpaths = "rust_template/tests"

Expand Down

0 comments on commit f3081ef

Please sign in to comment.