Skip to content

Commit

Permalink
test pydantic v2 (#226)
Browse files Browse the repository at this point in the history
* test pydantic v2

* sync with openfe
  • Loading branch information
mikemhenry authored Sep 1, 2023
1 parent 0b611a5 commit 34cf380
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,23 @@ defaults:
jobs:
tests:
runs-on: ${{ matrix.OS }}-latest
name: "tests"
name: "💻-${{matrix.os }} 🐍-${{ matrix.python-version }} 🗃️${{ matrix.pydantic-version }}"
strategy:
fail-fast: false
matrix:
os: ['ubuntu', 'macos']
os: ['ubuntu']
pydantic-version: [">1"]
python-version:
- 3.9
- "3.9"
- "3.10"
- "3.11"
include:
- os: "macos"
python-version: "3.11"
pydantic-version: ">1"
- os: "ubuntu"
python-version: "3.11"
pydantic-version: "<2"

env:
OE_LICENSE: ${{ github.workspace }}/oe_license.txt
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- pint <0.22 # https://github.com/openforcefield/openff-units/issues/69
- openff-models >=0.0.5
- pip
- pydantic <2
- pydantic >1
- pytest
- pytest-cov
- pytest-xdist
Expand Down

0 comments on commit 34cf380

Please sign in to comment.