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

ci: Run cargo-semver-checks on PRs #1598

Merged
merged 8 commits into from
Oct 21, 2024
Merged

ci: Run cargo-semver-checks on PRs #1598

merged 8 commits into from
Oct 21, 2024

Conversation

aborgna-q
Copy link
Collaborator

@aborgna-q aborgna-q commented Oct 18, 2024

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

image

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.72%. Comparing base (c79b95b) to head (a38a975).
Report is 2 commits behind head on main.

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           
Flag Coverage Δ
python 92.68% <ø> (ø)
rust 84.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aborgna-q aborgna-q force-pushed the ab/ci-semver-checks branch 4 times, most recently from 505bfc9 to 4cc0f10 Compare October 18, 2024 14:39
@aborgna-q aborgna-q force-pushed the ab/ci-semver-checks branch 3 times, most recently from d482fa9 to f7683d7 Compare October 18, 2024 15:23
@aborgna-q aborgna-q force-pushed the ab/ci-semver-checks branch from f7683d7 to d573bf2 Compare October 18, 2024 15:32
@aborgna-q aborgna-q marked this pull request as ready for review October 18, 2024 15:52
@aborgna-q aborgna-q requested a review from a team as a code owner October 18, 2024 15:52
@aborgna-q aborgna-q requested a review from croyzor October 18, 2024 15:52
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
Copy link
Collaborator Author

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

@aborgna-q aborgna-q requested review from ss2165 and removed request for croyzor October 18, 2024 15:53
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') }}"
Copy link
Member

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

@aborgna-q aborgna-q added the run-ci-checks Special label to force running all checks in CI label Oct 21, 2024
@aborgna-q aborgna-q force-pushed the ab/ci-semver-checks branch from b0c3ffe to 638f3a5 Compare October 21, 2024 10:30
github-merge-queue bot pushed a commit to CQCL/hugrverse-actions that referenced this pull request Oct 21, 2024
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.
@aborgna-q aborgna-q added this pull request to the merge queue Oct 21, 2024
Merged via the queue into main with commit ddca29c Oct 21, 2024
22 checks passed
@aborgna-q aborgna-q deleted the ab/ci-semver-checks branch October 21, 2024 10:47
ss2165 pushed a commit that referenced this pull request Nov 22, 2024
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">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-ci-checks Special label to force running all checks in CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants