diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 438b243..51fe06b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 }}