Skip to content

Commit

Permalink
Chore: send coverage data to codacy and put badge on readme (miurahr#856
Browse files Browse the repository at this point in the history
)

* chore: send coverage to codacy service

Signed-off-by: Hiroshi Miura <[email protected]>

* docs: add codacy badge

Signed-off-by: Hiroshi Miura <[email protected]>

* chore: track jar file in LFS

Signed-off-by: Hiroshi Miura <[email protected]>

* chore: add codacy utility in ci/ folder

Signed-off-by: Hiroshi Miura <[email protected]>

* chore: use bundled ci/codacy-coverage-reporter-assembly.jar

Signed-off-by: Hiroshi Miura <[email protected]>

* chore: ci: checkout with lfs support

Signed-off-by: Hiroshi Miura <[email protected]>

---------

Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr authored Dec 17, 2024
1 parent 5ee98ef commit 9f495db
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
.git_archival.txt export-subst

# Archives
*.7z filter=lfs diff=lfs merge=lfs -text
*.br filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text

# Documents
*.pdf filter=lfs diff=lfs merge=lfs -text

# Images
*.gif filter=lfs diff=lfs merge=lfs -text
*.ico filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text

# Fonts
*.woff2 filter=lfs diff=lfs merge=lfs -text

# Other
*.exe filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
14 changes: 13 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
with:
fetch-depth: 20
fetch-tags: true
lfs: true
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
Expand All @@ -29,10 +30,21 @@ jobs:
pip install -U pip
pip install tox tox-gh-actions coveralls coverage[toml]
- name: Check
run: tox
run: |
tox
coverage xml -o cobertura.xml
env:
PYTEST_ADDOPTS: --cov-config=pyproject.toml --cov --cov-append --verbose
- name: Upload Coverage
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Send coverage to codacy
run: |
java -jar ci/codacy-coverage-reporter-assembly.jar report -l Python -t ${PROJECT_TOKEN} -r cobertura.xml
env:
PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Another Qt installer(aqt)
- Release: |pypi|
- Documentation: |docs|
- Test status: |gha| and Coverage: |coveralls|
- Code Quality: |codacy|
- Project maturity |Package health|

.. |pypi| image:: https://badge.fury.io/py/aqtinstall.svg
Expand All @@ -17,7 +18,8 @@ Another Qt installer(aqt)
.. |Package health| image:: https://snyk.io/advisor/python/aqtinstall/badge.svg
:target: https://snyk.io/advisor/python/aqtinstall
:alt: aqtinstall

.. |codacy| image:: https://app.codacy.com/project/badge/Grade/188accbe7f8f406abf61b888773bf5e3
:target: https://app.codacy.com/gh/miurahr/aqtinstall/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade


This is a utility alternative to the official graphical Qt installer, for using in CI environment
Expand Down
3 changes: 3 additions & 0 deletions ci/codacy-coverage-reporter-assembly.jar
Git LFS file not shown

0 comments on commit 9f495db

Please sign in to comment.