Restrict build matrix and disable fail-fast
@@ -15,15 +15,25 @@ on:
jobs:
test:
- name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
- runs-on: ${{ matrix.os }}
+ name: Test on ${{ matrix.cfg.os }}, Python ${{ matrix.cfg.python-version }}
+ runs-on: ${{ matrix.cfg.os }}
strategy:
+ fail-fast: false
matrix:
- os: [macOS-latest, ubuntu-latest, windows-latest]
- python-version: [3.7, 3.8]
- openmm: [latest, beta, nightly, conda-forge]
+ cfg:
+ - { os: macOS-latest, python-version: 3.7, openmm: latest }
+ - { os: macOS-latest, python-version: 3.8, openmm: latest }
+ - { os: windows-latest, python-version: 3.8, openmm: latest }
+ - { os: windows-latest, python-version: 3.8, openmm: latest }
+ - { os: ubuntu-latest, python-version: 3.7, openmm: latest }
+ - { os: ubuntu-latest, python-version: 3.8, openmm: latest }
+ - { os: ubuntu-latest, python-version: 3.7, openmm: nightly }
+ - { os: ubuntu-latest, python-version: 3.8, openmm: nightly }
+ - { os: ubuntu-latest, python-version: 3.7, openmm: conda-forge }
+ - { os: ubuntu-latest, python-version: 3.8, openmm: conda-forge }
+
env:
- OPENMM: ${{ matrix.openmm }}
+ OPENMM: ${{ matrix.cfg.openmm }}
steps:
- uses: actions/checkout@v1
@@ -38,7 +48,7 @@ jobs:
# More info on options: https://github.com/goanpeca/setup-miniconda
- uses: goanpeca/setup-miniconda@v1
with:
- python-version: ${{ matrix.python-version }}
+ python-version: ${{ matrix.cfg.python-version }}
environment-file: devtools/conda-envs/test_env.yaml
channels: conda-forge,defaults
activate-environment: test
@@ -46,19 +56,15 @@ jobs:
auto-activate-base: false
show-channel-urls: true
- - name: Install package
- # conda setup requires this special shell
+ - name: Install OpenMM variants
shell: bash -l {0}
+ if: startsWith(matrix.os, 'ubuntu')
run: |
# Install desired OpenMM version
if [ "$OPENMM" == "latest" ]; then
echo "Using latest release OpenMM."
conda install --yes -c omnia openmm
fi
- if [ "$OPENMM" == "beta" ]; then
- echo "Using OpenMM beta";
- conda install --yes -c omnia/label/beta openmm
- fi
if [ "$OPENMM" == "nightly" ]; then
echo "Using OpenMM nightly dev build.";
conda install --yes -c omnia-dev openmm
@@ -68,6 +74,11 @@ jobs:
conda install --yes -c conda-forge/label/testing openmm
conda remove --force ocl-icd ocl-icd-system
fi
+
+ - name: Install package
+ # conda setup requires this special shell
+ shell: bash -l {0}
+ run: |
python -m pip install . --no-deps
conda list
@@ -82,4 +93,4 @@ jobs:
with:
file: ./coverage.xml
flags: unittests
- name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
+ name: codecov-${{ matrix.cfg.os }}-py${{ matrix.cfg.python-version }}
