-
Notifications
You must be signed in to change notification settings - Fork 1
DEVOPS-584: POC on pixi env for HPC #54
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
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
90f7a4c
[DEVOPS-584] Add pixi to pytest and pylint workflows
de9d41f
[DEVOPS-584] Run pixi install --frozen instead of pixi install --locked
71334b4
[DEVOPS-584] Add a build pixi package workflow
247eaba
Add GIT_LFS_SKIP_SMUDGE environment variable
saicheranb d2b5118
[DEVOPS-584] Merge remote-tracking branch 'upstream/main' into DEVOPS…
sebhmg 62b1126
[DEVOPS-584] update setup-pixi action and pix version
sebhmg 0697e0c
[DEVOPS-584] pixi install --locked instead of --frozen
sebhmg c75e48b
[DEVOPS-584] removing pixi build. Can still use poetry build
sebhmg a493e48
[DEVOPS-584] minor fix in comment
sebhmg bf0e404
[DEVOPS-584] use cache number to reset cache
sebhmg 0c6a64f
[DEVOPS-584] no need to check python version: pixi manages it all
sebhmg 0e197d3
[DEVOPS-584] remove unused input from pixi shared action
sebhmg f2c6639
[DEVOPS-584] pass cache number to shared actions
sebhmg 4755d16
[DEVOPS-584] aesthetics
sebhmg 516a1c0
[DEVOPS-584] input for pixi env
sebhmg c6a8f01
[DEVOPS-584] pass credentials to pixi for Artifactory
sebhmg 49e2b30
[DEVOPS-584] fix wrong input description
sebhmg a45e21c
[DEVOPS-584] convert python verion to pixi env name
sebhmg ca1af4e
[DEVOPS-584] accessing Artifactory is not necessarily required for pixi
sebhmg 22e1e54
[DEVOPS-584] activate the pixi environment
sebhmg e6176e0
[DEVOPS-584] pixi and micromamba do not need a pre-installed python
sebhmg 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
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
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,44 @@ | ||
| name: Setup pixi env | ||
| description: Setup pixi environment for Python | ||
| inputs: | ||
| cache-number: | ||
| description: 'Cache number to reset cache if pixi.lock has not changed' | ||
| required: true | ||
| type: number | ||
| python-version: | ||
| description: 'Python version to decide on the pixi environment to install' | ||
| required: false | ||
| type: string | ||
| JFROG_ARTIFACTORY_URL: | ||
| description: 'JFrog Artifactory URL' | ||
| required: true | ||
| type: string | ||
| JFROG_ARTIFACTORY_TOKEN: | ||
| description: 'JFrog Artifactory Token' | ||
| required: false | ||
| type: string | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - id: get-env-name | ||
| name: Get pixi environment name | ||
| shell: bash | ||
| env: | ||
| PYTHON_VERSION: ${{ inputs.python-version }} | ||
| run: | | ||
| pixi_env="py${PYTHON_VERSION//./}" | ||
| echo "pixi-env=$pixi_env" >> "$GITHUB_OUTPUT" | ||
| - uses: prefix-dev/setup-pixi@v0.9.0 | ||
| with: | ||
| pixi-version: v0.54.1 | ||
| environments: ${{ steps.get-env-name.outputs.pixi-env }} | ||
| activate-environment: true | ||
| cache-key: pixi-env${{ inputs.cache-number }} | ||
| cache: true | ||
| locked: true | ||
| auth-host: ${{ inputs.JFROG_ARTIFACTORY_URL }} | ||
| auth-username: ${{ inputs.JFROG_ARTIFACTORY_TOKEN && 'github' || '' }} | ||
| auth-password: ${{ inputs.JFROG_ARTIFACTORY_TOKEN }} | ||
| env: | ||
| GIT_LFS_SKIP_SMUDGE: 1 |
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
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.