Skip to content

Commit

Permalink
Merge branch 'main' into fix/issue_1157
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemhenry authored Feb 25, 2023
2 parents 55db168 + 2ff6ecc commit 9f1c7ae
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 34 deletions.
42 changes: 14 additions & 28 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10"]
openmm: ["nightly", "7.7", "beta"]
exclude:
- python-version: "3.10"
openmm: "7.6"
python-version: [3.8, 3.9, "3.10",]
openmm: ["dev", "8.0", "7.7"]

env:
OPENMM: ${{ matrix.openmm }}
Expand All @@ -43,36 +40,25 @@ jobs:
df -h
ulimit -a
# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
- name: Setup micromamba
uses: mamba-org/provision-with-micromamba@main
with:
python-version: ${{ matrix.python-version }}
environment-file: devtools/conda-envs/test_env.yaml
channels: jaimergp/label/unsupported-cudatoolkit-shim,conda-forge,defaults,omnia-dev,openeye
activate-environment: test
auto-update-conda: true
auto-activate-base: false
show-channel-urls: true
channel-priority: true
miniforge-variant: Mambaforge
environment-name: test
extra-specs: |
python=${{ matrix.python-version }}
- name: Refine test environment
shell: bash -l {0}
run: |
case ${{ matrix.openmm }} in
nightly)
echo "Using nightly dev build of OpenMM."
conda install -y -c omnia-dev openmm --override-channels --force-reinstall
echo "Using beta build of openeye toolkit"
conda install -y -c openeye/label/beta openeye-toolkits --override-channels --force-reinstall;;
beta)
echo "Using beta build of OpenMM."
conda install -c conda-forge/label/openmm_dev -c conda-forge openmm
echo "Using beta build of openeye toolkit"
conda install -y -c openeye/label/beta openeye-toolkits --override-channels --force-reinstall;;
dev)
echo "Using dev build of OpenMM"
micromamba install -c conda-forge/label/openmm_dev -c conda-forge openmm;;
*)
echo "installing OpenMM version ${{ matrix.openmm }}"
mamba install -y -c conda-forge openmm=${{ matrix.openmm }};;
micromamba install -y -c conda-forge openmm=${{ matrix.openmm }};;
esac
- name: Install package
Expand All @@ -83,8 +69,8 @@ jobs:
- name: Environment Information
shell: bash -l {0}
run: |
mamba info -a
mamba list
micromamba info
micromamba list
- name: Decrypt OpenEye license
shell: bash -l {0}
Expand Down
6 changes: 2 additions & 4 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ name: test
channels:
- jaimergp/label/unsupported-cudatoolkit-shim
- conda-forge
- defaults
- omnia-dev
- openeye
dependencies:
- arsenic
- autograd
- click
- cloudpathlib-s3
- cloudpathlib-s3 >=0.13.0
- coverage
- dask
- dask-jobqueue
Expand Down Expand Up @@ -41,7 +39,7 @@ dependencies:
- pytest-attrib
- pytest-cov
- pytest-xdist
- python >=3.6
- python
- rich
- scipy
- seaborn
Expand Down
8 changes: 6 additions & 2 deletions perses/tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
from perses.tests.utils import enter_temp_directory

ROOT_DIR_PATH = pathlib.Path(__file__).joinpath("../../../").resolve()
SLOW_EXAMPLES_KEYWORDS = ("barnase-barstar", "kinase-neq-switching")
NOT_EXAMPLES_KEYWORDS = ("analyze-benchmark", "moonshot-mainseries")


def run_script_file(file_path, cmd_args=None):
Expand Down Expand Up @@ -47,9 +49,11 @@ def find_example_scripts():
for example_file_path in examples_dir_path.glob("*/*.py"):
# TODO: find a better way to mark slow examples
example_posix_path = example_file_path.as_posix()
if "barnase-barstar" in example_posix_path or "kinase-neq-switching" in example_posix_path:
# mark slow examples
if any(example in example_posix_path for example in SLOW_EXAMPLES_KEYWORDS):
example_posix_path = pytest.param(example_posix_path, marks=pytest.mark.slow)
elif "analyze-benchmark" in example_posix_path:
# mark non-examples
elif any(example in example_posix_path for example in NOT_EXAMPLES_KEYWORDS):
example_posix_path = pytest.param(example_posix_path, marks=pytest.mark.skip("not an example"))
example_file_paths.append(example_posix_path)

Expand Down

0 comments on commit 9f1c7ae

Please sign in to comment.