Skip to content

Commit

Permalink
chore: bundle codacy coverage reporter jar (#628)
Browse files Browse the repository at this point in the history
* chore: bundle codacy coverage reporter jar

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

* chore: finish task use bundled jar

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

---------

Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr authored Dec 23, 2024
1 parent 33dca5e commit 7aa9af8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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.

0 comments on commit 7aa9af8

Please sign in to comment.