Skip to content

Commit

Permalink
Merge branch 'MDAnalysis:develop' into GROMOS11_Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
JoStoe authored Nov 14, 2023
2 parents 93bc53f + f4005db commit 64fac25
Show file tree
Hide file tree
Showing 47 changed files with 1,180 additions and 439 deletions.
12 changes: 6 additions & 6 deletions .github/actions/setup-deps/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ inputs:
description: 'use micromamba instead of conda'
default: false
# conda-installed min dependencies
biopython:
default: 'biopython>=1.80'
codecov:
default: 'codecov'
cython:
Expand All @@ -37,8 +35,6 @@ inputs:
default: 'mda-xdrlib'
mmtf-python:
default: 'mmtf-python'
networkx:
default: 'networkx'
numpy:
default: 'numpy'
packaging:
Expand All @@ -54,6 +50,8 @@ inputs:
tqdm:
default: 'tqdm>=4.43.0'
# conda-installed optional dependencies
biopython:
default: 'biopython>=1.80'
chemfiles-python:
default: 'chemfiles-python>=0.9'
clustalw:
Expand All @@ -68,6 +66,8 @@ inputs:
default: 'joblib>=0.12'
netcdf4:
default: 'netcdf4'
networkx:
default: 'networkx'
openmm:
default: 'openmm'
pytng:
Expand Down Expand Up @@ -106,7 +106,6 @@ runs:
shell: bash -l {0}
env:
CONDA_MIN_DEPS: |
${{ inputs.biopython }}
${{ inputs.codecov }}
${{ inputs.cython }}
${{ inputs.fasteners }}
Expand All @@ -115,7 +114,6 @@ runs:
${{ inputs.matplotlib }}
${{ inputs.mda_xdrlib }}
${{ inputs.mmtf-python }}
${{ inputs.networkx }}
${{ inputs.numpy }}
${{ inputs.packaging }}
${{ inputs.pip }}
Expand All @@ -124,6 +122,7 @@ runs:
${{ inputs.threadpoolctl }}
${{ inputs.tqdm }}
CONDA_OPT_DEPS: |
${{ inputs.biopython }}
${{ inputs.chemfiles-python }}
${{ inputs.clustalw }}
${{ inputs.distopia }}
Expand All @@ -132,6 +131,7 @@ runs:
${{ inputs.hole2 }}
${{ inputs.joblib }}
${{ inputs.netcdf4 }}
${{ inputs.networkx }}
${{ inputs.openmm }}
${{ inputs.pytng }}
${{ inputs.rdkit }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/darkerbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
Expand Down
114 changes: 80 additions & 34 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,32 @@ jobs:
fail-fast: false
matrix:
buildplat:
- [ubuntu-20.04, manylinux_x86_64]
- [macos-11, macosx_*]
- [windows-2019, win_amd64]
python: ["cp39", "cp310", "cp311"]
- [ubuntu-22.04, manylinux_x86_64, x86_64]
- [macos-11, macosx_*, x86_64]
- [windows-2019, win_amd64, AMD64]
python: ["cp39", "cp310", "cp311", "cp312"]
defaults:
run:
working-directory: ./package
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build wheels
uses: pypa/cibuildwheel@v2.11.2
uses: pypa/cibuildwheel@v2.16.2
with:
package-dir: package
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_ARCHS: ${{ matrix.buildplat[2] }}
CIBW_BUILD_VERBOSITY: 1

- name: upload artifacts
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) ||
(github.event_name == 'release' && github.event.action == 'published')
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl
retention-days: 7
Expand All @@ -75,7 +76,7 @@ jobs:
run:
working-directory: ./package
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -86,7 +87,7 @@ jobs:
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) ||
(github.event_name == 'release' && github.event.action == 'published')
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: package/dist/*.tar.gz
retention-days: 7
Expand All @@ -100,7 +101,7 @@ jobs:
run:
working-directory: ./testsuite
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -111,21 +112,25 @@ jobs:
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) ||
(github.event_name == 'release' && github.event.action == 'published')
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
path: testsuite/dist/*.tar.gz
retention-days: 7

upload_testpypi:
upload_testpypi_mdanalysis:
if: |
github.repository == 'MDAnalysis/mdanalysis' &&
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package'))
name: testpypi upload
environment: deploy
name: testpypi_upload_mdanalysis
environment:
name: deploy
url: https://test.pypi.org/p/mdanalysis
permissions:
id-token: write
runs-on: ubuntu-latest
needs: [build_wheels, build_sdist, build_sdist_tests]
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
Expand All @@ -136,32 +141,55 @@ jobs:
mv dist/MDAnalysisTests-* testsuite/dist
- name: upload_source_and_wheels
uses: pypa/gh-action-pypi-publish@v1.5.0
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.TESTPYPI_API_TOKEN_SRC }}
skip_existing: true
repository_url: https://test.pypi.org/legacy/

upload_testpypi_mdanalysistests:
if: |
github.repository == 'MDAnalysis/mdanalysis' &&
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package'))
name: testpypi_upload_mdanalysistests
environment:
name: deploy
url: https://test.pypi.org/p/mdanalysis
permissions:
id-token: write
runs-on: ubuntu-latest
needs: [build_wheels, build_sdist, build_sdist_tests]
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: move_test_dist
run: |
mkdir -p testsuite/dist
mv dist/MDAnalysisTests-* testsuite/dist
- name: upload_tests
uses: pypa/gh-action-pypi-publish@v1.5.0
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.TESTPYPI_API_TOKEN_TEST }}
packages_dir: testsuite/dist
skip_existing: true
repository_url: https://test.pypi.org/legacy/

upload_pypi:
upload_pypi_mdanalysis:
if: |
github.repository == 'MDAnalysis/mdanalysis' &&
github.event_name == 'release' && github.event.action == 'published'
name: pypi upload
environment: deploy
name: pypi_upload_mdanalysis
environment:
name: deploy
url: https://pypi.org/p/mdanalysis
permissions:
id-token: write
runs-on: ubuntu-latest
needs: [build_wheels, build_sdist, build_sdist_tests]
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
Expand All @@ -172,16 +200,34 @@ jobs:
mv dist/MDAnalysisTests-* testsuite/dist
- name: upload_source_and_wheels
uses: pypa/[email protected]
uses: pypa/[email protected]

upload_pypi_mdanalysistests:
if: |
github.repository == 'MDAnalysis/mdanalysis' &&
github.event_name == 'release' && github.event.action == 'published'
name: pypi_upload_mdanalysistests
environment:
name: deploy
url: https://pypi.org/p/mdanalysistests
permissions:
id-token: write
runs-on: ubuntu-latest
needs: [build_wheels, build_sdist, build_sdist_tests]
steps:
- uses: actions/download-artifact@v3
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_SRC }}
name: artifact
path: dist

- name: move_test_dist
run: |
mkdir -p testsuite/dist
mv dist/MDAnalysisTests-* testsuite/dist
- name: upload_tests
uses: pypa/gh-action-pypi-publish@v1.5.0
uses: pypa/gh-action-pypi-publish@v1.18.10
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN_TEST }}
packages_dir: testsuite/dist

check_testpypi:
Expand All @@ -191,12 +237,12 @@ jobs:
name: testpypi check
runs-on: ${{ matrix.os }}
timeout-minutes: 60
needs: upload_testpypi
needs: [upload_testpypi_mdanalysis, upload_testpypi_mdanalysistests]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
type: ["FULL", "MIN"]
exclude:
# Multiple deps don't like windows
Expand All @@ -206,7 +252,7 @@ jobs:
MPLBACKEND: agg

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup_micromamba
uses: mamba-org/setup-micromamba@v1
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/gh-ci-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup_os
uses: ./.github/actions/setup-os
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup_os
uses: ./.github/actions/setup-os
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
os: [ubuntu-20.04, macos-11]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup_os
uses: ./.github/actions/setup-os
Expand Down Expand Up @@ -184,9 +184,9 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup_os
uses: ./.github/actions/setup-os
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
os: [ubuntu, macos]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: setup_os
uses: ./.github/actions/setup-os
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
wheels: ['true', 'false']
steps:
# Checkout to have access to local actions (i.e. setup-os)
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# We need this here in order to make sure we assign the correct compiler (i.e. clang for macos)
- name: setup_os
Expand Down
Loading

0 comments on commit 64fac25

Please sign in to comment.