Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the preflight-summary comment and change the test coverage gist #52

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/preflight-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
# https://github.com/marketplace/actions/dynamic-badges
uses: schneegans/[email protected]
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 }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AlmaLinux tests cacher

<picture>
<img alt="Test Coverage" src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/maccelf/809b43cccaf8256b03fc0103e245eefc/raw/alma-tests-cacher-badge__main.json">
<img alt="Test Coverage" src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/andrewlukoshko/7142370c45ed5dcbed30a99ece77dcd1/raw/coverage-badge.json">
</picture>
<br/><br/>

Expand Down
Loading