Skip to content

Cdc-ap66_badge_ci_fix#15

Merged
cdc-ap66 merged 6 commits into
mainfrom
cdc-ap66_badge_ci_fix
Aug 14, 2025
Merged

Cdc-ap66_badge_ci_fix#15
cdc-ap66 merged 6 commits into
mainfrom
cdc-ap66_badge_ci_fix

Conversation

@cdc-ap66

@cdc-ap66 cdc-ap66 commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

[2025.08.14.1a]

Fixes

  • Conditional coverage badge update only when pulling to main

steps skipped in ci for PR

image

@cdc-ap66
cdc-ap66 requested a review from swo August 14, 2025 18:27
Comment thread pyproject.toml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #16

Comment thread .github/workflows/run_qaqc.yaml Outdated
Comment on lines +33 to +40
- name: Build badge
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
run: |
poetry run coverage-badge -f -o docs/assets/badges/coverage.svg
echo '<!-- timestamp: '"$(date '+%Y-%m-%d %H:%M:%S')"' -->' >> docs/assets/badges/coverage.svg

- name: Check-in Coverage Badge
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be somewhat more elegant if this was one step, both building the badge and then checking it in

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll combine the steps

Comment thread .github/workflows/run_qaqc.yaml Outdated
- name: Check-in Coverage Badge
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
run: |
if [ -z "${{ github.head_ref }}" ];

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this nominally doing the same thing as if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}? Honest question born of ignorance

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks the same to me. I just copied it from yours.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooooh, I see what you mean. I didn't need any of this anymore.. it's gone

@swo
swo self-requested a review August 14, 2025 19:49

@swo swo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully this fixes the CI failure caused by poetry not being installed!

@cdc-ap66
cdc-ap66 merged commit a634ee4 into main Aug 14, 2025
4 checks passed
cdc-ap66 added a commit that referenced this pull request Aug 14, 2025
@swo swo mentioned this pull request Aug 14, 2025
@cdc-ap66
cdc-ap66 deleted the cdc-ap66_badge_ci_fix branch August 18, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants