-
Notifications
You must be signed in to change notification settings - Fork 4
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: fix main workflow #72
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
.github/workflows/main.yaml
Outdated
pull_request: | ||
paths: | ||
- '.github/workflows/cpp.yml' |
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.
Did you mean to commit this?
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.
🤦 Yes I did, but I meant to edit it to be main.yaml instead, which would explain why it didn't run here
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.
pull_request: | |
paths: | |
- '.github/workflows/cpp.yml' | |
pull_request: | |
paths: | |
- '.github/workflows/main.yaml' |
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.
Oh neat! So, to confirm my understanding... this runs main.yaml
anytime the file is changed on a pull request?
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.
Correct--you can see that it just ran now that I fixed it. So it still wouldn't have caught the change in #60 since I didn't touch this file. But if we ever edit this file in the future, the PR will run it, we won't have to wait for it to land on main.
Since this is basically testing the Makefile, we could also have it run when the Makefile is modified?
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.
That makes sense. I like the idea of workflows being task-focused instead of branch-focused. e.g., makefile.yaml
instead of main.yaml
or something...
Out of habit, I set up The only current difference is that the pull request performs the coverage report. |
Got it. I would think we'd want coverage running on main so that we could track it over time. That said, I don't plan on spending much time thinking about our coverage numbers. |
#60 updated the pull request workflow but also needed to update the main workflow, which was not triggered on the PR. This PR fixes that and modifies that workflow to run when the workflow file is touched, which should trigger it on this PR.
That said, I'm not sure why we need a separate workflow to run on main from the one we run on PRs.