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: general workflow improvements #4796

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

CI: general workflow improvements #4796

wants to merge 20 commits into from

Conversation

jorgepiloto
Copy link
Member

@jorgepiloto jorgepiloto commented Jun 12, 2024

This pull-request allows the CI/CD pipelines to operate on a label-based approach. Main advantage is that the self-hosted runner workload gets reduced.

The CI/CD identifies which files have been modified and adds some default tags. These trigger only the required jobs. For example, if a developer adds a new example, there is no need to run the tests. Only the example should be executed.

On top of this, authorized developers in this repository can freely choose the tags in the PR, to run desired workflows on demand.

  • Split between ci_cd_pr.yml, ci_cd_main.yml, ci_cd_night.yml, and ci_cd_release.yml
  • Tests have been grouped in matrix jobs. This removes code duplication while still providing custom configuration

Pull-request workflow

Old New

@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@jorgepiloto jorgepiloto changed the title ci: used a label-based workflow for pull-requests CI: used a label-based workflow for pull-requests Jun 12, 2024
@github-actions github-actions bot added maintenance Package and maintenance related tests:solvers labels Jun 12, 2024
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.80%. Comparing base (3539828) to head (c302aa9).
Report is 8 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4796       +/-   ##
===========================================
- Coverage   82.66%   36.80%   -45.86%     
===========================================
  Files         117      117               
  Lines       54159    54151        -8     
===========================================
- Hits        44770    19931    -24839     
- Misses       9389    34220    +24831     

@jorgepiloto jorgepiloto changed the title CI: used a label-based workflow for pull-requests CI: general workflow improvements Jun 12, 2024
@github-actions github-actions bot removed the ci label Jun 12, 2024
@jorgepiloto jorgepiloto force-pushed the ci/labels branch 9 times, most recently from 34dc4a8 to 4380021 Compare June 12, 2024 09:46
@github-actions github-actions bot added the ci label Jun 12, 2024
@github-actions github-actions bot removed the ci label Jun 12, 2024
@github-actions github-actions bot added the ci label Jun 12, 2024
@github-actions github-actions bot added ci and removed ci labels Jun 13, 2024
@jorgepiloto jorgepiloto force-pushed the ci/labels branch 2 times, most recently from 528f94d to fdb5573 Compare June 14, 2024 08:58
@github-actions github-actions bot added the ci label Jun 17, 2024
@github-actions github-actions bot removed the ci label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Package and maintenance related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant