Skip to content

Commit

Permalink
Merge pull request #19 from tom65536/11-add-code-coverage
Browse files Browse the repository at this point in the history
feat: add coverity upload
  • Loading branch information
tom65536 authored Jul 28, 2024
2 parents 88d1878 + 15be575 commit 84e1ede
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
pip install tox
- name: Run unit tests with tox
run: tox run -e pytest
- name: Codacy Coverage Reporter
uses: codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml

Release:
needs:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8996/badge)](https://www.bestpractices.dev/projects/8996)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/075ffea9b1b8406d95b090e3a56a3313)](https://app.codacy.com/gh/tom65536/annual/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
![OSS Lifecycle](https://img.shields.io/osslifecycle/tom65536/annual)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/075ffea9b1b8406d95b090e3a56a3313)](https://app.codacy.com/gh/tom65536/annual/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ testpaths =
tests
minversion = 6.0
filterwarnings = ignore
addopts = -v -ra -q --cov --cov-append --cov-report=term-missing --doctest-modules --pyargs annual tests
addopts = -v -ra -q --cov --cov-append --cov-report term-missing --cov-report xml:coverage.xml --doctest-modules --pyargs annual tests
log_cli = True
log_cli_level = INFO
log_format = %(asctime)s %(levelname)s %(message)s
Expand Down

0 comments on commit 84e1ede

Please sign in to comment.