Skip to content

Commit

Permalink
chore: avoid codacy upload on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr committed Dec 14, 2024
1 parent 9482a15 commit ed3ecb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run-tox-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ jobs:
COVERALLS_PARALLEL: true
COVERALLS_FLAG_NAME: py-${{ matrix.python-version }}-${{ matrix.os }}
- uses: actions/setup-java@v4
if: runner.os != 'Windows'
with:
distribution: 'temurin'
java-version: '21'
- 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
Expand Down

0 comments on commit ed3ecb9

Please sign in to comment.