-
Notifications
You must be signed in to change notification settings - Fork 15
ci: Revamp CI #503
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
Merged
Merged
ci: Revamp CI #503
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
195b6ff
ci: Use PYTHON_VERSION consistently in tests workflow
ValerianRey f1f83e7
Factorize some steps in tests.yml
ValerianRey 3a4e57d
Add name to checkout step
ValerianRey 041d509
Stop using x-common-steps
ValerianRey 95a237e
Remove possibly redundant --python-version when installing deps
ValerianRey c6106e0
Refactor ci: use composite actions
ValerianRey e76503b
Fix
ValerianRey 04f5780
Go back to using anchor for codecov
ValerianRey 36fcb92
Factorize run-tests into its own composite action
ValerianRey fff23ae
Add xfail_if_xyz_not_installed markers and use them instead of ignori…
ValerianRey 5ebe077
Revert "Add xfail_if_xyz_not_installed markers and use them instead o…
ValerianRey fa2f872
Remove unnecessary ignore from tests.yml default deps test
ValerianRey ec83987
Change the way nashmtl and cagrad tests are skipped
ValerianRey 057f1dd
Remove now quite useless run-tests composite action
ValerianRey 0d24c97
Use variation-based config in tests.yml
ValerianRey 1b296b2
Add default config testing
ValerianRey 3d5a58f
Fix default config and add options variation
ValerianRey 1488520
Fix installation options variations
ValerianRey 8fbc97c
Add comments
ValerianRey 8901660
Remove setup-uv composite action
ValerianRey a8ef620
Simplify optional deps logic, make full the default in the action
ValerianRey e1ac5d1
Fix none options
ValerianRey b09a5d5
Simplify options
ValerianRey c973ff4
Try to simplify none string logic
ValerianRey da78ec1
Revert "Try to simplify none string logic"
ValerianRey 36355e1
Improve explanation about none option string
ValerianRey 573588b
Add echo of the install deps command
ValerianRey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Install Dependencies | ||
| description: Install package dependencies using uv | ||
|
|
||
| inputs: | ||
| options: | ||
| # We can't directly provide the empty string for no options because it would be mapped to the | ||
| # default value thanks to github's weird logic (https://github.com/actions/toolkit/issues/940) | ||
| description: 'Package options to install (space-separated, e.g., "full"). Use "none" for no options.' | ||
| required: false | ||
| default: 'full' | ||
| groups: | ||
| description: 'Dependency groups to install (space-separated, e.g., "test doc")' | ||
| required: false | ||
| default: '' | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Install dependencies (options=[${{ inputs.options }}], groups=[${{ inputs.groups }}]) | ||
| shell: bash | ||
| run: | | ||
| # Map "none" to the empty string | ||
| options_input="${{ inputs.options }}" | ||
| if [ "$options_input" = "none" ]; then | ||
| options_input="" | ||
| fi | ||
|
|
||
| # Build the install command | ||
| cmd="uv pip install -e" | ||
|
|
||
| # Convert space-separated options to comma-separated for brackets | ||
| # E.g. "abc def" => '.[abc,def]' | ||
| options=$(echo "$options_input" | tr ' ' ',') | ||
| cmd="$cmd '.[$options]'" | ||
|
|
||
| # Add groups | ||
| for group in ${{ inputs.groups }}; do | ||
| cmd="$cmd --group $group" | ||
| done | ||
|
|
||
| # Print and execute the command | ||
| echo $cmd | ||
| eval $cmd | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.