Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
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
14 changes: 7 additions & 7 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ version: 'v0.0.3'
workflows:
'.github/workflows/gh-ci-tests.yaml':
- 'actions/checkout@v7.0.1'
- 'mamba-org/setup-micromamba@v3.2.1'
- 'prefix-dev/setup-pixi@v0.11.3'
'.github/workflows/gh-ci.yaml':
- 'actions/checkout@v7.0.1'
- 'mamba-org/setup-micromamba@v3.2.1'
- 'prefix-dev/setup-pixi@v0.11.3'
'.github/workflows/pre-commit.yaml':
- 'actions/checkout@v7.0.1'
- 'actions/setup-python@v7.1.0'
Expand Down Expand Up @@ -41,18 +41,18 @@ dependencies:
commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0'
owner_id: 44036562
repo_id: 192625525
'mamba-org/setup-micromamba@v3.2.1':
ref: 'v3.2.1'
commit: 'sha1-f457c30a868e4760d3a6fcea5f25dc655b8edf39'
owner_id: 66118895
repo_id: 595118157
'pre-commit/action@v3.0.1':
ref: 'v3.0.1'
commit: 'sha1-2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd'
owner_id: 6943086
repo_id: 204199630
uses:
- 'actions/cache@v4'
'prefix-dev/setup-pixi@v0.11.3':
ref: 'v0.11.3'
commit: 'sha1-9936258fee697aff89b3fed6ca1f80a382ef694e'
owner_id: 111356225
repo_id: 686703662
'readthedocs/actions@v1.5':
ref: 'v1.5'
commit: 'sha1-b8bba1484329bda1a3abe986df7ebc80a8950333'
Expand Down
35 changes: 17 additions & 18 deletions .github/workflows/gh-ci-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,30 @@ jobs:
steps:
- uses: actions/checkout@v7.0.1

- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"

- name: setup micromamba
uses: mamba-org/setup-micromamba@v3.2.1
- name: setup pixi
uses: prefix-dev/setup-pixi@v0.11.3
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
41 changes: 21 additions & 20 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/checkout@v7.0.1

- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"

- name: setup micromamba
uses: mamba-org/setup-micromamba@v3.2.1
- name: setup pixi
uses: prefix-dev/setup-pixi@v0.11.3
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'
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ hole2

# Ignore auto-generated tables
*.txt
# pixi environments
.pixi/*
!.pixi/config.toml
Loading
Loading