Skip to content

Commit

Permalink
fix: coverage upload
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw committed May 21, 2024
1 parent 2faf27e commit b30bf47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ jobs:
python -Im pip install --upgrade "git+https://github.com/percevalw/coveragepy.git#egg=coverage[toml]"
python -Im coverage combine
coverage report --show-missing > ${{ inputs.coverage-report }}
cp ${{ inputs.coverage-report }} > /tmp/main-coverage.txt
cp ${{ inputs.coverage-report }} /tmp/main-coverage.txt
# Generate the coverage badge
curl -s -o generate_badge.py https://raw.githubusercontent.com/aphp/foldedtensor/main/.github/workflows/generate_badge.py
python generate_badge.py -r /tmp/main-coverage.txt -t ${{ inputs.badge-template.svg }} > ${{ inputs.coverage-badge }}
cp ${{ inputs.coverage-badge }} > /tmp/coverage.svg
cp ${{ inputs.coverage-badge }} /tmp/coverage.svg
git fetch origin ${{ inputs.coverage-branch }}:${{ inputs.coverage-branch }} --depth=1 || true
git checkout ${{ inputs.coverage-branch }} || git checkout --orphan ${{ inputs.coverage-branch }}
Expand Down

0 comments on commit b30bf47

Please sign in to comment.