Skip to content

Commit

Permalink
Fix GH actions workflows (#58)
Browse files Browse the repository at this point in the history
* GH actions installs openmm-cpp-forces if openmm>=8.1

* Fixed docs test

* Fixed string comparison
  • Loading branch information
craabreu committed Jan 31, 2024
1 parent 304386b commit 326aa0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/Docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ jobs:
environment-file: devtools/conda-envs/docs_env.yaml
environment-name: docs
create-args: >-
python=3.9
python=3.11
openmm>=8.1
- name: Install package
shell: bash -l {0}
run: |
micromamba install -y -c mdtools openmm-cpp-forces
python -m pip install . --no-deps
micromamba list
Expand Down Expand Up @@ -84,7 +86,7 @@ jobs:
echo "Deployment is deactivated on pull requests"
exit 0
elif [ "$GITHUB_REF_TYPE" == "tag" ]; then
subdirs=($CVPACK_VERSION latest)
subdirs=(${{ github.ref_name }} latest)
else
subdirs=(development)
fi
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/Linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
# conda setup requires this special shell
shell: bash -l {0}
run: |
if ! [[ "${{ matrix.openmm-version }}" < "8.1" ]]; then
micromamba install -y -c mdtools openmm-cpp-forces
fi
python -m pip install . --no-deps
micromamba list
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/MacOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
# conda setup requires this special shell
shell: bash -l {0}
run: |
micromamba install -y -c mdtools openmm-cpp-forces
python -m pip install . --no-deps
micromamba list
Expand Down

0 comments on commit 326aa0c

Please sign in to comment.