Skip to content

Commit

Permalink
Merge pull request #1123 from openforcefield/update-ci
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
mattwthompson authored Dec 18, 2024
2 parents dc466b7 + 43a7952 commit 719aaba
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 104 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Tests against betas
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
- cron: "0 3 * * *"

defaults:
run:
Expand All @@ -21,8 +21,7 @@ jobs:
python-version:
- "3.10"
- "3.11"
pydantic-version:
- "2"
- "3.12"
openeye:
- true
- false
Expand All @@ -39,20 +38,24 @@ jobs:
- name: Install conda environment
uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: '1.5.10-0'
environment-file: devtools/conda-envs/beta_env.yaml
environment-file: devtools/conda-envs/test_env.yaml
condarc: |
channels:
- openeye/label/rc
- conda-forge/label/openmm_rc
- conda-forge/label/mdtraj_rc
- conda-forge/label/openff-toolkit_rc
- conda-forge/label/openff-interchange_rc
- openeye
- conda-forge
create-args: >-
python=${{ matrix.python-version }}
pydantic=${{ matrix.pydantic-version }}
- name: Install package
run: |
micromamba remove --force openff-interchange openff-interchange-base
python -m pip install . plugins/
- name: Environment Information
run: conda info && conda list

- name: License OpenEye
if: ${{ matrix.openeye == true }}
run: |
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/changes.yaml

This file was deleted.

8 changes: 2 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- main
- develop
schedule:
- cron: "0 0 * * *"
- cron: "0 5 * * *"
workflow_dispatch:

defaults:
Expand All @@ -19,7 +19,7 @@ defaults:

jobs:
test:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}, OpenMM ${{ matrix.openmm }}, Pydantic ${{ matrix.pydantic-version }}, OpenEye ${{ matrix.openeye }}
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}, OpenMM ${{ matrix.openmm }}, OpenEye ${{ matrix.openeye }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -30,8 +30,6 @@ jobs:
python-version:
- "3.10"
- "3.11"
pydantic-version:
- "2"
openeye:
- true
- false
Expand All @@ -51,11 +49,9 @@ jobs:
- name: Install conda environment
uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: '1.5.10-0'
environment-file: devtools/conda-envs/test_env.yaml
create-args: >-
python=${{ matrix.python-version }}
pydantic=${{ matrix.pydantic-version }}
- name: Install package
run: |
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- main
- develop
schedule:
- cron: "0 0 * * *"
- cron: "0 7 * * *"
workflow_dispatch:

defaults:
Expand All @@ -28,6 +28,7 @@ jobs:
- macos-latest
python-version:
- "3.10"
- "3.11"

env:
OE_LICENSE: ${{ github.workspace }}/oe_license.txt
Expand All @@ -41,7 +42,6 @@ jobs:
- name: Install conda environment
uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: '1.5.10-0'
environment-file: devtools/conda-envs/examples_env.yaml
create-args: >-
python=${{ matrix.python-version }}
Expand All @@ -50,11 +50,6 @@ jobs:
run: |
python -m pip install .
- name: Environment Information
run: |
micromamba info
micromamba list
- name: License OpenEye
run: |
echo "${SECRET_OE_LICENSE}" > ${OE_LICENSE}
Expand Down
43 changes: 0 additions & 43 deletions devtools/conda-envs/beta_env.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions devtools/conda-envs/dev_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
- openeye
dependencies:
# Core
- python =3.10
- python
- pip
- versioningit
- pip
Expand All @@ -18,8 +18,8 @@ dependencies:
- openmm =8.1.2
# smirnoff-plugins =2024
# de-forcefields # add back after smirnoff-plugins update
- openff-nagl
- openff-nagl-models
- openff-nagl ~=0.5
- openff-nagl-models ~=0.3
- mbuild ~=0.18
- foyer =1
- gmso ~=0.12
Expand Down
4 changes: 2 additions & 2 deletions devtools/conda-envs/examples_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ dependencies:
- openff-units
- ambertools =23
# Optional features
- openff-nagl
- openff-nagl-models
- openff-nagl ~=0.5
- openff-nagl-models ~=0.3
- mbuild ~=0.18
- foyer =1
- gmso ~=0.12
Expand Down
6 changes: 3 additions & 3 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ dependencies:
- openmm =8.1.2
# smirnoff-plugins =2024
# de-forcefields # add back after smirnoff-plugins update
- openff-nagl
- openff-nagl-models
- mbuild ~=0.18
- openff-nagl ~=0.5
- openff-nagl-models ~=0.3
- mbuild =1
- foyer =1
- gmso ~=0.12
- nglview
Expand Down
4 changes: 2 additions & 2 deletions openff/interchange/common/_nonbonded.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ class ElectrostaticsCollection(_NonbondedCollection):
"cutoff",
"no-cutoff",
] = Field(
_PME,
) # type: ignore[assignment]
_PME, # type: ignore[arg-type]
)
nonperiodic_potential: Literal["Coulomb", "cutoff", "no-cutoff"] = Field("Coulomb")
exception_potential: Literal["Coulomb"] = Field("Coulomb")

Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ exclude_lines =
@overload

[mypy]
python_version = 3.12
mypy_path = stubs/
plugins = numpy.typing.mypy_plugin,pydantic.mypy
warn_unused_configs = True
warn_unused_ignores = True
warn_incomplete_stub = True
show_error_codes = True
exclude = openff/interchange/_tests/

[mypy-pandas.*]
ignore_missing_imports = True
Expand Down

0 comments on commit 719aaba

Please sign in to comment.