Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Add post deployment conda and pypi cron tests #4210

Merged
merged 8 commits into from
Jul 26, 2023
Merged
Changes from 6 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
72 changes: 71 additions & 1 deletion .github/workflows/gh-ci-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
schedule:
# 3 am Tuesdays and Fridays
- cron: "0 3 * * 2,5"
pull_request:
branches:
- develop

concurrency:
# Probably overly cautious group naming.
Expand Down Expand Up @@ -161,7 +164,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 +199,70 @@ 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]
orbeckst marked this conversation as resolved.
Show resolved Hide resolved
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
orbeckst marked this conversation as resolved.
Show resolved Hide resolved

- 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
IAlibay marked this conversation as resolved.
Show resolved Hide resolved

- 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
Loading