Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bundle codacy coverage reporter jar #628

Merged
merged 2 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/run-tox-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ jobs:
- name: Send coverage to codacy
if: runner.os != 'Windows'
run: |
curl -LS -o codacy-coverage-reporter-assembly.jar "$(curl -LSs https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r '.assets | map({name, browser_download_url} | select(.name | endswith(".jar"))) | .[0].browser_download_url')"
java -jar codacy-coverage-reporter-assembly.jar report -l Python -t ${PROJECT_TOKEN} --partial -r cobertura.xml
java -jar utils/codacy-coverage-reporter.jar report -l Python -t ${PROJECT_TOKEN} --partial -r cobertura.xml
env:
PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

Expand Down Expand Up @@ -163,6 +162,8 @@ jobs:
name: finish parallel build
needs: build
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Tell Coveralls that the parallel build is finished
run: |
curl -k \
Expand All @@ -177,7 +178,6 @@ jobs:
java-version: '21'
- name: Send coverage to codacy
run: |
curl -LS -o codacy-coverage-reporter-assembly.jar "$(curl -LSs https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r '.assets | map({name, browser_download_url} | select(.name | endswith(".jar"))) | .[0].browser_download_url')"
java -jar codacy-coverage-reporter-assembly.jar final -t ${PROJECT_TOKEN}
java -jar utils/codacy-coverage-reporter.jar final -t ${PROJECT_TOKEN}
env:
PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
Binary file added utils/codacy-coverage-reporter.jar
Binary file not shown.
Loading