-
Notifications
You must be signed in to change notification settings - Fork 8
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
ci: Run cargo-semver-checks on PRs #1598
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1598 +/- ##
=======================================
Coverage 85.72% 85.72%
=======================================
Files 136 136
Lines 24783 24783
Branches 21719 21719
=======================================
Hits 21244 21244
Misses 2437 2437
Partials 1102 1102
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
505bfc9
to
4cc0f10
Compare
d482fa9
to
f7683d7
Compare
f7683d7
to
d573bf2
Compare
.github/workflows/ci-rs.yml
Outdated
rs-semver-checks: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.rust == 'true' && github.event_name == 'pull_request' }} | ||
uses: CQCL/hugrverse-actions/.github/workflows/rs-semver-checks.yml@ab/semver-checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change the target branch as soon as CQCL/hugrverse-actions#13 is merged
.github/workflows/ci-rs.yml
Outdated
id: override | ||
run: | | ||
echo "Labels: ${{ github.event.pull_request.labels.*.name }}" | ||
echo "Label contains run-ci-checks: ${{ contains( github.event.pull_request.labels.*.name, 'run-ci-checks') }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems worth writing the result of contains(
to a var
b0c3ffe
to
638f3a5
Compare
Test PR: CQCL/hugr#1598 Limitations: - Comments won't be updated when the PR title is changed (added/removed a `!` flag). It will only change when a new commit is pushed.
Run `cargo-ci-checks` on each PR, and add a comment with the output if there are breaking changes. See CQCL/hugrverse-actions#13 drive-by: Allow forcing the checks to run by adding a `run-ci-checks` label to the PR. Imported from tket2. https://github.com/CQCL/tket2/blob/740b3ec20f7d3889162c935a47cd0de9ba250a45/.github/workflows/ci.yml#L44 <img width="894" alt="image" src="https://github.com/user-attachments/assets/10748599-e2ab-46fa-979f-d8246c203d5a">
Run
cargo-ci-checks
on each PR, and add a comment with the output if there are breaking changes.See CQCL/hugrverse-actions#13
drive-by: Allow forcing the checks to run by adding a
run-ci-checks
label to the PR. Imported from tket2.https://github.com/CQCL/tket2/blob/740b3ec20f7d3889162c935a47cd0de9ba250a45/.github/workflows/ci.yml#L44