Skip to content

Commit

Permalink
Merge branch 'MDAnalysis:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ALescoulie authored Jun 24, 2024
2 parents 1a67667 + 22793c1 commit 7dd677c
Show file tree
Hide file tree
Showing 54 changed files with 2,153 additions and 945 deletions.
66 changes: 37 additions & 29 deletions .github/workflows/gh-ci-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
schedule:
# once a week at midnight on Sunday
- cron: "0 3 * * 0"
workflow_dispatch:

concurrency:
# Commits to develop/master will cancel each other, but PRs will only cancel
Expand All @@ -23,34 +24,44 @@ jobs:
outputs:
matrix: ${{ steps.get-mdakits.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- id: get-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.12"

- id: get-mdakits
run: |
mdakit=$(python utils/get_dir_matrix.py)
echo "::set-output name=matrix::${mdakit}"
echo "matrix=${mdakit}" >> $GITHUB_OUTPUT
env_config:
runs-on: ubuntu-latest
outputs:
python-stable: ${{ steps.get-compatible-python.outputs.stable-python }}
python-min: ${{ steps.get-compatible-python.outputs.oldest-pythons }}

steps:
- uses: actions/setup-python@v4
with:
python-version: "3.12"

- id: get-compatible-python
uses: MDAnalysis/mdanalysis-compatible-python@main
with:
release: "develop"

mdakit-ci:
needs: gen_matrix
needs: [gen_matrix, env_config]
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
mdakit: ${{fromJSON(needs.gen_matrix.outputs.matrix)}}
jobstep: ['latest', 'develop']
steps:
- uses: actions/checkout@v3

- id: prev-python-ver
name: prev-python-ver
uses: MDAnalysis/get-latest-python-version@main
with:
last-n-minor-release: 1
- uses: actions/checkout@v4

- id: get-base-python-deps
name: get-base-python-deps
Expand All @@ -59,10 +70,11 @@ jobs:
- id: check-set-python-bounds
name: check-set-python-bounds
continue-on-error: true
continue-on-error: false
run: |
basepy=${{steps.prev-python-ver.outputs.python-version}}
pyver=$(python utils/check_python_ver.py --mdakit "${{matrix.mdakit}}" --maxpyver ${basepy})
maxpy=${{needs.env_config.outputs.python-stable}}
minpy=${{needs.env_config.outputs.python-min}}
pyver=$(python utils/check_python_ver.py --mdakit "${{matrix.mdakit}}" --maxpyver ${maxpy} --minpyver ${minpy})
echo "PYVER=${pyver}" >> $GITHUB_ENV
- id: install-conda-env
Expand Down Expand Up @@ -141,7 +153,7 @@ jobs:
- id: upload-artifacts
name: upload-artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cron-statuses-${{ matrix.mdakit }}-${{ matrix.jobstep }}
path: ${{ matrix.mdakit }}-${{ matrix.jobstep }}-statuses.json
Expand All @@ -158,9 +170,9 @@ jobs:
packages: none
issues: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: json-statuses/

Expand Down Expand Up @@ -190,19 +202,15 @@ jobs:
needs: process_results
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: setup_miniconda
uses: conda-incubator/setup-miniconda@v2
- uses: actions/checkout@v4
- name: setup_micromamba
uses: mamba-org/setup-micromamba@v1
with:
python-version: 3.9
auto-update-conda: true
channel-priority: flexible
channels: conda-forge
add-pip-as-python-dependency: true
architecture: x64
use-mamba: true
miniforge-variant: Mambaforge
environment-file: docs/requirements.yaml
environment-name: MDAKitRegistry-docs
create-args: >-
python=3.9
pip
- name: build_docs
run: |
cd docs && sphinx-build -b html source build
Expand Down
38 changes: 24 additions & 14 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
outputs:
matrix: ${{ steps.get-changed-mdakits.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- id: get-python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.9

- id: files
name: get changed filed
uses: jitterbit/get-changed-files@v1
uses: masesgroup/retrieve-changed-files@v3
with:
format: 'json'
- id: get-changed-mdakits
Expand All @@ -38,24 +38,33 @@ jobs:
echo ${{ steps.files.outputs.all }}
mdakit=$(python utils/get_affected_mdakits.py --json '${{ steps.files.outputs.all }}')
echo ${mdakit}
echo "::set-output name=matrix::${mdakit}"
echo "matrix=${mdakit}" >> $GITHUB_OUTPUT
env_config:
runs-on: ubuntu-latest
outputs:
python-stable: ${{ steps.get-compatible-python.outputs.stable-python }}
python-min: ${{ steps.get-compatible-python.outputs.oldest-pythons }}
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.12"

- id: get-compatible-python
uses: MDAnalysis/mdanalysis-compatible-python@main
with:
release: "develop"

mdakit-ci:
needs: gen_matrix
needs: [gen_matrix, env_config]
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
mdakit: ${{fromJSON(needs.gen_matrix.outputs.matrix)}}
jobstep: ['latest', 'develop']
steps:
- uses: actions/checkout@v3

- id: prev-python-ver
name: prev-python-ver
uses: MDAnalysis/get-latest-python-version@main
with:
last-n-minor-release: 1
- uses: actions/checkout@v4

- id: get-base-python-deps
name: get-base-python-deps
Expand All @@ -66,8 +75,9 @@ jobs:
name: check-set-python-bounds
continue-on-error: false
run: |
basepy=${{steps.prev-python-ver.outputs.python-version}}
pyver=$(python utils/check_python_ver.py --mdakit "${{matrix.mdakit}}" --maxpyver ${basepy})
maxpy=${{needs.env_config.outputs.python-stable}}
minpy=${{needs.env_config.outputs.python-min}}
pyver=$(python utils/check_python_ver.py --mdakit "${{matrix.mdakit}}" --maxpyver ${maxpy} --minpyver ${minpy})
echo "PYVER=${pyver}" >> $GITHUB_ENV
- id: install-conda-env
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,5 @@ dmypy.json

# workflow storage
json-statuses/

.DS_Store
6 changes: 4 additions & 2 deletions docs/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: MDAKitRegistry-docs
channels:
- conda-forge
- defaults
dependencies:
# Base depends
- python
- pip

- sphinx==5.3.0
- sphinx_rtd_theme
- sphinx
- mdanalysis-sphinx-theme

- pyyaml
- pydantic
Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/gen_mdakits.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def generate_mdakit_index(target='.', excludedirs=["template",]):
" 2. Provide sufficient details to allow others to use and "
"potentially participate in the development of the MDAKits\n"
" 3. Provide information about the current state of the MDAKits "
"and how they interact with the latest versions of MDAnalysis\n"
"and how they interact with the latest versions of MDAnalysis\n\n"
"Each of the MDAKits in the following table links to a page with "
"more details about what the MDAKits do, how they can be "
"installed and how to participate in their development.\n")
Expand Down
Loading

0 comments on commit 7dd677c

Please sign in to comment.