Skip to content

Commit

Permalink
pin numpy to <2
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Jul 1, 2024
1 parent 3c65fb7 commit 72e2e46
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Python package
name: Benchmark

on:
- push
- pull_request

jobs:
build:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -15,7 +15,7 @@ jobs:
python-version: 3.12
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: uv pip install --system .[amber,ase,pymatgen,benchmark] rdkit openbabel-wheel
run: uv pip install --system .[test,amber,ase,pymatgen,benchmark] rdkit openbabel-wheel
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies
run: uv pip install --system .[amber,ase,pymatgen] coverage ./tests/plugin rdkit openbabel-wheel
run: uv pip install --system .[test,amber,ase,pymatgen] coverage ./tests/plugin rdkit openbabel-wheel
- name: Test
run: cd tests && coverage run --source=../dpdata -m unittest && cd .. && coverage combine tests/.coverage && coverage report
- name: Run codecov
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ repository = "https://github.com/deepmodeling/dpdata"
dpdata = "dpdata.cli:dpdata_cli"

[project.optional-dependencies]
test = [
# https://github.com/materialsproject/pymatgen/issues/3882
# https://github.com/kuelumbus/rdkit-pypi/issues/102
"numpy<2",
]
ase = ['ase']
amber = [
'parmed; python_version >= "3.8"',
Expand Down

0 comments on commit 72e2e46

Please sign in to comment.