Skip to content

Commit

Permalink
[CI] Add post deployment conda and pypi cron tests (#4210)
Browse files Browse the repository at this point in the history
* Add CRON canary jobs for latest deployed version of MDAnalysis on pypi and conda
* add gsd pin to pypi cron check
* pin conda gsd install
  • Loading branch information
IAlibay authored Jul 26, 2023
1 parent a1aff66 commit d161858
Showing 1 changed file with 69 additions and 1 deletion.
70 changes: 69 additions & 1 deletion .github/workflows/gh-ci-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
# Issue 1727
pip-only:
pip-only-develop:
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ubuntu-latest
timeout-minutes: 60
Expand Down Expand Up @@ -196,3 +196,71 @@ jobs:
- name: run_tests
run: |
pytest -n $numprocs testsuite/MDAnalysisTests --disable-pytest-warnings --durations=50
# Issue 4208
conda-latest-release:
# A set of runner to check that the latest conda release works as expected
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3

- name: setup_micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: mda
create-args: >-
python=${{ matrix.python-version }}
pip
# using jaime's shim to avoid pulling down the cudatoolkit
condarc: |
channels:
- jaimergp/label/unsupported-cudatoolkit-shim
- conda-forge
- bioconda
- name: install_deps
uses: ./.github/actions/setup-deps
with:
micromamba: true
full-deps: true
gsd: "gsd<3.0"

- name: install_mdanalysis
run: |
micromamba install mdanalysis mdanalysistests
- name: run_tests
run: |
pytest -n auto --pyargs MDAnalysisTests
pypi-latest-release:
# A set of runner to check that the latest conda release works as expected
if: "github.repository == 'MDAnalysis/mdanalysis'"
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: install_mdanalysis
shell: bash
run: |
pip install mdanalysis mdanalysistests pytest-xdist "gsd<3.0"
- name: run_tests
shell: bash
run: |
pytest -n auto --pyargs MDAnalysisTests

0 comments on commit d161858

Please sign in to comment.