From 3155f267886ee237a28b939e31e0cc9a611471a5 Mon Sep 17 00:00:00 2001 From: Igor Sudak Date: Tue, 2 Apr 2024 20:02:31 +0000 Subject: [PATCH] Fix the preflight-summary comment and change the test coverage gist --- .github/workflows/preflight-summary.yml | 4 ++-- .github/workflows/run-tests.yml | 6 +++--- README.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/preflight-summary.yml b/.github/workflows/preflight-summary.yml index 6a75119..ad62640 100644 --- a/.github/workflows/preflight-summary.yml +++ b/.github/workflows/preflight-summary.yml @@ -50,9 +50,9 @@ jobs: run: | { cat test-summary.md - printf "\n### Code Coverage Summary\n" + printf "\n\n### Code Coverage Summary\n" cat code-coverage-results.md - JOB_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/${{github.event.workflow_run.id }}" + JOB_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/${{ github.event.workflow_run.id }}" printf "\nView full reports on the [Job Summary]($JOB_URL \"Go to Job Summary\") page\n\n" cat {pylint,black,isort,bandit}-report.md > linter-reports.md 2>/dev/null || true diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8726add..3ed6961 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -52,9 +52,9 @@ jobs: # https://github.com/marketplace/actions/dynamic-badges uses: schneegans/dynamic-badges-action@v1.7.0 with: - auth: ${{ secrets.GIST_SECRET }} - gistID: 809b43cccaf8256b03fc0103e245eefc - filename: alma-tests-cacher-badge__main.json + auth: ${{ secrets.GIST_TOKEN }} + gistID: 7142370c45ed5dcbed30a99ece77dcd1 + filename: coverage-badge.json label: Test Coverage message: ${{ steps.pytest.outputs.percent_covered }}% valColorRange: ${{ steps.pytest.outputs.percent_covered }} diff --git a/README.md b/README.md index 34ea907..6826540 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # AlmaLinux tests cacher - Test Coverage + Test Coverage