diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-04-13 10:04:44 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-04-13 10:05:46 -0400 |
commit | 7b68d1286cefb45225ee851a6e9b5d47594d69cb (patch) | |
tree | 5adacf3e254d80e625706b81781e093e117adfbc | |
parent | dd724f69a4d9d0641389bb8d830475fa1091e094 (diff) | |
download | python-coveragepy-git-7b68d1286cefb45225ee851a6e9b5d47594d69cb.tar.gz |
build: use htmlpreview.github.com for simpler report publishing
-rw-r--r-- | .github/workflows/coverage.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 60e8d0a2..ab0c1142 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -178,7 +178,7 @@ jobs: echo "sha10=$SHA10" >> $GITHUB_ENV echo "slug=$SLUG" >> $GITHUB_ENV echo "report_dir=$REPORT_DIR" >> $GITHUB_ENV - echo "url=https://nedbat.github.io/coverage-reports/$REPORT_DIR" >> $GITHUB_ENV + echo "url=https://htmlpreview.github.io/?https://github.com/nedbat/coverage-reports/blob/main/reports/$SLUG/htmlcov/index.html" >> $GITHUB_ENV echo "branch=${REF#refs/heads/}" >> $GITHUB_ENV - name: "Summarize" @@ -217,6 +217,8 @@ jobs: # Make the commit message. echo "${{ env.total }}% - $COMMIT_MESSAGE" > commit.txt echo "" >> commit.txt + echo "[View the report](${{ env.url }})" >> commit.txt + echo "" >> commit.txt echo "${{ env.url }}" >> commit.txt echo "${{ env.sha10 }}: ${{ env.branch }}" >> commit.txt # Commit. |