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

Workflow efficiency improvements: #44

Merged
merged 11 commits into from
Dec 11, 2023

Conversation

kirkrodrigues
Copy link
Member

@kirkrodrigues kirkrodrigues commented Dec 10, 2023

  • Run build_wheels workflow only when relevant files change.
  • Cancel in-progress jobs when another commit is pushed to a branch.

Description

The build_wheels workflow concurrently runs on changes to any files in the repo (including docs) and allows concurrent workflow runs when only the latest change in a branch needs to be tested. To resolve this, this PR makes two changes:

  1. The workflow is only run when relevant files are changed.
  2. The workflow now uses a concurrency group that cancels in-progress jobs (from previous commits).

Validation performed

  • Validated the workflow doesn't run when irrelevant files are changed.
  • Validated in-progress runs are cancelled when a new commit is pushed to a branch.

@kirkrodrigues kirkrodrigues changed the title Fine grained workflows Workflow efficiency improvements: Dec 10, 2023
@kirkrodrigues kirkrodrigues merged commit dba223f into y-scope:main Dec 11, 2023
3 checks passed
@kirkrodrigues kirkrodrigues deleted the fine-grained-workflows branch December 11, 2023 23:06
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.

2 participants