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: Refact and extend CI/CD workflows to leverage ansys actions #4284

Merged
merged 97 commits into from
May 4, 2024

Conversation

SMoraisAnsys
Copy link
Collaborator

@SMoraisAnsys SMoraisAnsys commented Feb 27, 2024

Important

One of the new steps requires that a new ansys/actions is released. This PR shouldn't be merged as long as 5.1.9 is the latest version released.

List of the worfklows to validate in the new one (aggregation into one workflow):

  • Doc Style
  • Doc Build (see DOC: Use flag -W when building documentation with sphinx-build #4296 if we keep print_errors.py or leverage option -W of sphinx-build, or something else)
    • Add install option [doc-noexamples] to remove a lot of unneeded dependencies
  • Test
  • Test solver
  • Iron Python
  • Wheelhouse and smoke tests
  • Full documentation (moved to CICD)
  • Doc build upload and update dev index (moved to CICD)
  • Cpython linux (test and test solver)
  • PR title

Extra workflows:

  • [Nightly] Cpython linux (test and test solver)
  • [Nightly] Doc build with upload and update dev index
  • [Nightly] Test pre release

@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

Note: this job uses Make target html-noexamples
Note: targets have been added and refactored.
Note: this new environment variable is used to decide whether
the examples are included in the documentation build or not.
@github-actions github-actions bot added documentation maintenance Package and maintenance related labels Feb 28, 2024
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.74%. Comparing base (61f4d81) to head (e17691b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4284      +/-   ##
==========================================
+ Coverage   81.73%   81.74%   +0.01%     
==========================================
  Files         107      107              
  Lines       51788    51788              
==========================================
+ Hits        42328    42334       +6     
+ Misses       9460     9454       -6     

@codecov-commenter
Copy link

codecov-commenter commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.59%. Comparing base (9c4ba60) to head (9d01a51).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4284      +/-   ##
==========================================
+ Coverage   81.48%   81.59%   +0.11%     
==========================================
  Files         110      111       +1     
  Lines       53887    53948      +61     
==========================================
+ Hits        43908    44019     +111     
+ Misses       9979     9929      -50     

SMoraisAnsys and others added 7 commits March 5, 2024 16:01
Note: This will bundle the packages required to run the
examples and other packages that are often used with pyaedt
Changes include:
- reworking the way HTML pages are created (with/without examples)
- adding clean target
- refact pdf target
Note: Json code block do not accept comments with hashtag
@SMoraisAnsys
Copy link
Collaborator Author

@Samuelopez-ansys FYI there was still some issues with our self hosted runners and I had to make a few changes in them. Hoperfully this will lead us to a working PDF with examples 🤞

_unittest_solvers/test_00_analyze.py Outdated Show resolved Hide resolved
_unittest_solvers/test_00_analyze.py Outdated Show resolved Hide resolved
_unittest_solvers/test_00_analyze.py Outdated Show resolved Hide resolved
@SMoraisAnsys
Copy link
Collaborator Author

@Samuelopez-ansys The PR is ready to be merged !

Copy link
Member

@Samuelopez-ansys Samuelopez-ansys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @SMoraisAnsys

SMoraisAnsys added a commit that referenced this pull request May 2, 2024
Seems like #4589 did not handle this tests and that it might
be worth it to reopen #4590. The skipped tests are currently
blocking #4284 from passing CICD as tests would be performed
on Linux.
@SMoraisAnsys SMoraisAnsys merged commit 9936f70 into main May 4, 2024
33 checks passed
@SMoraisAnsys SMoraisAnsys deleted the ci/refact_cicd branch May 4, 2024 07:09
@MaxJPRey
Copy link
Collaborator

MaxJPRey commented May 5, 2024

Thanks @SMoraisAnsys . Great work that would be extremely valuable for us.

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.

Improve CI CD
5 participants