mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 05:04:38 +03:00
Chore: send coverage data to codacy and put badge on readme (#856)
* chore: send coverage to codacy service Signed-off-by: Hiroshi Miura <miurahr@linux.com> * docs: add codacy badge Signed-off-by: Hiroshi Miura <miurahr@linux.com> * chore: track jar file in LFS Signed-off-by: Hiroshi Miura <miurahr@linux.com> * chore: add codacy utility in ci/ folder Signed-off-by: Hiroshi Miura <miurahr@linux.com> * chore: use bundled ci/codacy-coverage-reporter-assembly.jar Signed-off-by: Hiroshi Miura <miurahr@linux.com> * chore: ci: checkout with lfs support Signed-off-by: Hiroshi Miura <miurahr@linux.com> --------- Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
14
.github/workflows/check.yml
vendored
14
.github/workflows/check.yml
vendored
@@ -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:
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user