Skip to content
Draft
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
7 changes: 6 additions & 1 deletion .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ workflows:
- 'mamba-org/setup-micromamba@v3.2.1'
'.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 @@ -53,6 +53,11 @@ dependencies:
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
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