API: Wire more arguments through to_openmm_system
#2573
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: examples | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-12 | |
python-version: | |
- "3.10" | |
env: | |
OE_LICENSE: ${{ github.workspace }}/oe_license.txt | |
INTERCHANGE_EXPERIMENTAL: "1" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install conda environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '1.5.10-0' | |
environment-file: devtools/conda-envs/examples_env.yaml | |
create-args: >- | |
python=${{ matrix.python-version }} | |
- name: Install package | |
run: | | |
# These packages are brought in by conda (via the toolkit) and must be removed manually | |
# since pip doesn't know about the -base split and does not uninstall the -base package | |
micromamba remove --force openff-interchange openff-interchange-base | |
python -m pip install . | |
- name: Environment Information | |
run: | | |
micromamba info | |
micromamba list | |
- name: License OpenEye | |
run: | | |
echo "${SECRET_OE_LICENSE}" > ${OE_LICENSE} | |
python -c "from openeye import oechem; assert oechem.OEChemIsLicensed()" | |
env: | |
SECRET_OE_LICENSE: ${{ secrets.OE_LICENSE }} | |
- name: Run docexamples | |
run: | | |
pytest --doctest-modules openff/interchange/ --ignore=openff/interchange/_tests | |
- name: Run example notebooks | |
if: always() | |
run: | | |
python -m pytest --nbval-lax --dist loadscope -n logical --durations=20 examples/ \ | |
--ignore=examples/deprecated/ \ | |
--ignore=examples/experimental |