-
Notifications
You must be signed in to change notification settings - Fork 59
Optimize GitHub Actions workflows with path filters and caching #558
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
Conversation
… consumption Co-authored-by: pabloati <[email protected]>
|
@copilot Include a new condition on the release workflow. If the release is updated, rebuild and push the docker |
…lease updates Co-authored-by: pabloati <[email protected]>
|
@copilot I want to know how can I test this actions before doing the pull-request |
You can test GitHub Actions workflows before merging using these approaches:
The workflows in this PR will automatically run when you open/update the PR to master, so you can verify them directly from the PR's "Checks" tab. |
|
@copilot I saw that the conda environment installation and the test check are only done for pull-request to master. Would it make sense to expand them to be done on any push? I think that at least the tests should be like that, to be done on every push, in case something gets broken in production, to detect it asap, right? |
…uction Co-authored-by: pabloati <[email protected]>
Good point! Added push trigger to master for
The conda environment check ( |
This reverts commit e9711a7.
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.
This file is just a split of the previous action where both the conda environment and the tests were tested. However, now it will only be run if the conda environment file is modified
CI workflows were running on every push to any branch and taking up to 90 minutes due to full conda environment reinstalls. Optimized workflows with appropriate path filters, caching, and targeted triggers.
Changes
Renamed
build-test-conda.yml→run-tests.ymlpushto master ANDpull_requestto masteractions/cache@v4permissions: contents: readCreated
check-conda-env.ymlSQANTI3.conda_env.ymlchanges on PRs to masterUpdated
generate-docker-image.ymlDockerfile,build_docker.sh,.dockerignoreUpdated
push-to-dockerhub-on-release.ymleditedevent type to rebuild and push Docker when a release is updatedTrigger Summary
run-tests.ymlcheck-conda-env.ymlSQANTI3.conda_env.ymlgenerate-docker-image.ymlpush-to-dockerhub-on-release.ymlOriginal prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.