Repository navigation
Use pixi for CI #465
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
Open
jpkrowe
wants to merge
10
commits into
MDAnalysis:develop
Choose a base branch
from
jpkrowe:pixi
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+15,186
−45
Open
Use pixi for CI #465
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4cb9339
Added pixi environment files
jpkrowe be31743
Updated lock
jpkrowe 35ec765
Make all packages conda-forge
jpkrowe a18209a
Merge branch 'develop' into pixi
jpkrowe b516428
Switched build ci to pixi
jpkrowe 0909a1a
Updated github actions lockfile
jpkrowe f400c57
Update test workflow to use pixi
jpkrowe 02bcb97
Change email
jpkrowe 24c9a35
Add minimum pixi version
jpkrowe 0f8f8ba
Update lock
jpkrowe 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # SCM syntax highlighting & preventing 3-way merges | ||
| pixi.lock merge=binary linguist-language=YAML linguist-generated=true -diff |
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 |
|---|---|---|
|
|
@@ -5,10 +5,10 @@ version: 'v0.0.3' | |
| workflows: | ||
| '.github/workflows/gh-ci-tests.yaml': | ||
| - 'actions/[email protected]' | ||
| - 'mamba-org/setup-[email protected]' | ||
| - 'prefix-dev/setup-[email protected]' | ||
| '.github/workflows/gh-ci.yaml': | ||
| - 'actions/[email protected]' | ||
| - 'mamba-org/setup-[email protected]' | ||
| - 'prefix-dev/setup-[email protected]' | ||
| '.github/workflows/pre-commit.yaml': | ||
| - 'actions/[email protected]' | ||
| - 'actions/[email protected]' | ||
|
|
@@ -41,18 +41,18 @@ dependencies: | |
| commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0' | ||
| owner_id: 44036562 | ||
| repo_id: 192625525 | ||
| 'mamba-org/[email protected]': | ||
| ref: 'v3.2.1' | ||
| commit: 'sha1-f457c30a868e4760d3a6fcea5f25dc655b8edf39' | ||
| owner_id: 66118895 | ||
| repo_id: 595118157 | ||
| 'pre-commit/[email protected]': | ||
| ref: 'v3.0.1' | ||
| commit: 'sha1-2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd' | ||
| owner_id: 6943086 | ||
| repo_id: 204199630 | ||
| uses: | ||
| - 'actions/cache@v4' | ||
| 'prefix-dev/[email protected]': | ||
| ref: 'v0.11.3' | ||
| commit: 'sha1-9936258fee697aff89b3fed6ca1f80a382ef694e' | ||
| owner_id: 111356225 | ||
| repo_id: 686703662 | ||
| 'readthedocs/[email protected]': | ||
| ref: 'v1.5' | ||
| commit: 'sha1-b8bba1484329bda1a3abe986df7ebc80a8950333' | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -29,31 +29,30 @@ jobs: | |
| steps: | ||
| - uses: actions/[email protected] | ||
|
|
||
| - name: Get current date | ||
| id: date | ||
| run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" | ||
|
|
||
| - name: setup micromamba | ||
| uses: mamba-org/[email protected] | ||
| - name: setup pixi | ||
| uses: prefix-dev/[email protected] | ||
| with: | ||
| environment-file: environment.yml | ||
| environment-name: mda-user-guide | ||
| cache-environment: true | ||
| cache-downloads: true | ||
| cache-environment-key: environment-${{ steps.date.outputs.date }} | ||
| cache-downloads-key: downloads-${{ steps.date.outputs.date }} | ||
| create-args: >- | ||
| hole2 | ||
| pixi-version: v0.84.2 | ||
| run-install: ${{ github.event_name != 'schedule' }} | ||
| cache: ${{ github.event_name != 'schedule' }} | ||
| cache-write: ${{ github.event_name == 'push' && github.ref_name == 'develop' }} | ||
| environments: ${{ github.event_name != 'schedule' && 'default' || '' }} | ||
|
|
||
| - name: update lock file | ||
| # test against the latest MDAnalysis develop and dependencies | ||
| if: github.event_name == 'schedule' | ||
| run: pixi update -e default -p linux-64 | ||
|
|
||
| - name: "environment information" | ||
| run: | | ||
| micromamba info | ||
| micromamba list | ||
| pixi info | ||
| pixi list -e default | ||
|
|
||
| # These tasks could instead be defined in the pixi.toml file | ||
| - name: "test snapshots" | ||
| working-directory: doc/source/scripts/ | ||
| run: python -m pytest | ||
| run: pixi run python -m pytest | ||
|
|
||
| - name: "test notebooks" | ||
| working-directory: tests/ | ||
| run: python -m pytest | ||
| run: pixi run python -m pytest | ||
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 |
|---|---|---|
|
|
@@ -33,37 +33,35 @@ jobs: | |
| env: | ||
| CYTHON_TRACE_NOGIL: 1 | ||
| MPLBACKEND: agg | ||
| # release tags build against the released MDAnalysis, everything else against develop | ||
| PIXI_ENV: ${{ startsWith(github.ref, 'refs/tags/release') && 'release' || 'default' }} | ||
|
|
||
| steps: | ||
| - uses: actions/[email protected] | ||
|
|
||
| - name: Get current date | ||
| id: date | ||
| run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" | ||
|
|
||
| - name: setup micromamba | ||
| uses: mamba-org/[email protected] | ||
| - name: setup pixi | ||
| uses: prefix-dev/[email protected] | ||
| with: | ||
| environment-file: environment.yml | ||
| environment-name: mda-user-guide | ||
| cache-environment: true | ||
| cache-downloads: true | ||
| cache-environment-key: environment-${{ steps.date.outputs.date }} | ||
| cache-downloads-key: downloads-${{ steps.date.outputs.date }} | ||
|
|
||
| pixi-version: v0.84.2 | ||
| # for scheduled runs we update the lock file below, | ||
| # so we do not install the cached environment | ||
| run-install: ${{ github.event_name != 'schedule' }} | ||
| cache: ${{ github.event_name != 'schedule' }} | ||
| cache-write: ${{ github.event_name == 'push' && github.ref_name == 'develop' }} | ||
| environments: ${{ github.event_name != 'schedule' && env.PIXI_ENV || '' }} | ||
|
|
||
| - name: update lock file | ||
| # test against the latest MDAnalysis develop and dependencies | ||
| if: github.event_name == 'schedule' | ||
| run: pixi update -e ${PIXI_ENV} -p linux-64 | ||
|
|
||
| - name: install_deps | ||
| run: | | ||
| jupyter-nbextension enable nglview --py --sys-prefix | ||
|
|
||
| - name: install_released_mda | ||
| # If it's a release, pick up the latest version of MDAnalysis/Tests and deploy that | ||
| if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/release')) | ||
| run: python -m pip install MDAnalysis MDAnalysisTests -U --force-reinstall | ||
| pixi run -e ${PIXI_ENV} jupyter-nbextension enable nglview --py --sys-prefix | ||
|
|
||
| - name: build_docs | ||
| run: | | ||
| make -C ${SPHINX_DIR} html | ||
| pixi run -e ${PIXI_ENV} make -C ${SPHINX_DIR} html | ||
|
|
||
| - name: deploy_docs | ||
| if: github.event_name != 'pull_request' | ||
|
|
@@ -75,6 +73,9 @@ jobs: | |
| URL: https://userguide.mdanalysis.org | ||
|
|
||
| run: | | ||
| # activate the pixi environment so that `python` below has MDAnalysis | ||
| eval "$(pixi shell-hook -e ${PIXI_ENV})" | ||
|
|
||
| # set up environment variables | ||
| # cannot execute bash to make variables in env section | ||
| # export URL for the Python script $UPDATE_JSON | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -51,3 +51,6 @@ hole2 | |
|
|
||
| # Ignore auto-generated tables | ||
| *.txt | ||
| # pixi environments | ||
| .pixi/* | ||
| !.pixi/config.toml | ||
Oops, something went wrong.
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.