Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test on Python 3.10 #497

Merged
merged 15 commits into from Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -30,6 +30,7 @@ jobs:
- macOS-latest
python-version:
- "3.9"
- "3.10"
pymbar-version:
- "3.1"
openmm-version:
Expand All @@ -38,6 +39,9 @@ jobs:
openeye:
- true
- false
exclude:
- python-version: "3.10"
openmm-version: "7"

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion devtools/conda-envs/test_env.yaml
Expand Up @@ -10,7 +10,7 @@ dependencies:
# Testing and development
- pytest
- pytest-cov
- pytest-xdist
- pytest-randomly
- nbval
- requests-mock # For testing http requests.
# smirnoff-plugins =0.0.3
Expand Down
6 changes: 3 additions & 3 deletions openff/evaluator/tests/test_utils/test_serialization.py
Expand Up @@ -125,7 +125,7 @@ def __setstate__(self, state):
self.field2 = state["field2"]


class TestClass(TypedBaseModel):
class SomeTestClass(TypedBaseModel):
def __init__(self, inputs=None):
self.inputs = inputs

Expand Down Expand Up @@ -178,10 +178,10 @@ def test_polymorphic_dictionary():
"test_Complex": ComplexObject(),
}

test_object = TestClass(inputs=test_dictionary)
test_object = SomeTestClass(inputs=test_dictionary)
test_json = test_object.json()

test_recreated = TestClass.parse_json(test_json)
test_recreated = SomeTestClass.parse_json(test_json)
test_recreated_json = test_recreated.json()

assert test_json == test_recreated_json
Expand Down