Skip to content

Commit 9f495db

Browse files
authored
Chore: send coverage data to codacy and put badge on readme (#856)
* 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]>
1 parent 5ee98ef commit 9f495db

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

.gitattributes

+25
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
11
.git_archival.txt export-subst
2+
3+
# Archives
4+
*.7z filter=lfs diff=lfs merge=lfs -text
5+
*.br filter=lfs diff=lfs merge=lfs -text
6+
*.gz filter=lfs diff=lfs merge=lfs -text
7+
*.tar filter=lfs diff=lfs merge=lfs -text
8+
*.zip filter=lfs diff=lfs merge=lfs -text
9+
10+
# Documents
11+
*.pdf filter=lfs diff=lfs merge=lfs -text
12+
13+
# Images
14+
*.gif filter=lfs diff=lfs merge=lfs -text
15+
*.ico filter=lfs diff=lfs merge=lfs -text
16+
*.jpg filter=lfs diff=lfs merge=lfs -text
17+
*.png filter=lfs diff=lfs merge=lfs -text
18+
*.psd filter=lfs diff=lfs merge=lfs -text
19+
*.webp filter=lfs diff=lfs merge=lfs -text
20+
21+
# Fonts
22+
*.woff2 filter=lfs diff=lfs merge=lfs -text
23+
24+
# Other
25+
*.exe filter=lfs diff=lfs merge=lfs -text
26+
*.jar filter=lfs diff=lfs merge=lfs -text

.github/workflows/check.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
fetch-depth: 20
2222
fetch-tags: true
23+
lfs: true
2324
- name: Set up Python 3.12
2425
uses: actions/setup-python@v5
2526
with:
@@ -29,10 +30,21 @@ jobs:
2930
pip install -U pip
3031
pip install tox tox-gh-actions coveralls coverage[toml]
3132
- name: Check
32-
run: tox
33+
run: |
34+
tox
35+
coverage xml -o cobertura.xml
3336
env:
3437
PYTEST_ADDOPTS: --cov-config=pyproject.toml --cov --cov-append --verbose
3538
- name: Upload Coverage
3639
run: coveralls --service=github
3740
env:
3841
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
- uses: actions/setup-java@v4
43+
with:
44+
distribution: 'temurin'
45+
java-version: '21'
46+
- name: Send coverage to codacy
47+
run: |
48+
java -jar ci/codacy-coverage-reporter-assembly.jar report -l Python -t ${PROJECT_TOKEN} -r cobertura.xml
49+
env:
50+
PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

README.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Another Qt installer(aqt)
44
- Release: |pypi|
55
- Documentation: |docs|
66
- Test status: |gha| and Coverage: |coveralls|
7+
- Code Quality: |codacy|
78
- Project maturity |Package health|
89

910
.. |pypi| image:: https://badge.fury.io/py/aqtinstall.svg
@@ -17,7 +18,8 @@ Another Qt installer(aqt)
1718
.. |Package health| image:: https://snyk.io/advisor/python/aqtinstall/badge.svg
1819
:target: https://snyk.io/advisor/python/aqtinstall
1920
:alt: aqtinstall
20-
21+
.. |codacy| image:: https://app.codacy.com/project/badge/Grade/188accbe7f8f406abf61b888773bf5e3
22+
:target: https://app.codacy.com/gh/miurahr/aqtinstall/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
2123

2224

2325
This is a utility alternative to the official graphical Qt installer, for using in CI environment
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:4a9fdfe92f450cebf08d4309f0df9c89389041ff9cd6561a396dcd23787217f0
3+
size 18987294

0 commit comments

Comments
 (0)