-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable testing for resource estimates (#828)
* Guard imports and skip tests if pyscf / jax not found. * Upgrade ci to run resource estimate tests. * Remove commented code. * Fix formatting. * Fix requirements filename. * Remove argument from workflow. * Remove comments from ci. * Fix ci and ignore init in coverage. * Attempt to fix windows issue using shorter ints. * Fix formatting and overflow. * Add rootdir to check/pytest.
- Loading branch information
Showing
27 changed files
with
396 additions
and
96 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,3 +89,5 @@ ENV/ | |
|
||
# no .dat files | ||
*.dat | ||
|
||
*tmp* |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[pytest] | ||
markers = | ||
slow: marks tests as slow (deselect with '-m "not slow"') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pyscf | ||
jax | ||
jaxlib |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,218 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.10 | ||
# by the following command: | ||
# | ||
# pip-compile --output-file=resource_estimates.env.txt deps/resource_estimates.txt pytest.env.txt | ||
# | ||
attrs==23.1.0 | ||
# via | ||
# -r pytest.env.txt | ||
# jsonschema | ||
certifi==2023.5.7 | ||
# via | ||
# -r pytest.env.txt | ||
# requests | ||
charset-normalizer==3.1.0 | ||
# via | ||
# -r pytest.env.txt | ||
# requests | ||
cirq-core==1.1.0 | ||
# via -r pytest.env.txt | ||
contourpy==1.0.7 | ||
# via | ||
# -r pytest.env.txt | ||
# matplotlib | ||
coverage[toml]==7.2.5 | ||
# via | ||
# -r pytest.env.txt | ||
# pytest-cov | ||
cycler==0.11.0 | ||
# via | ||
# -r pytest.env.txt | ||
# matplotlib | ||
deprecation==2.1.0 | ||
# via -r pytest.env.txt | ||
duet==0.2.8 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
exceptiongroup==1.1.1 | ||
# via | ||
# -r pytest.env.txt | ||
# pytest | ||
execnet==1.9.0 | ||
# via | ||
# -r pytest.env.txt | ||
# pytest-xdist | ||
fastjsonschema==2.17.1 | ||
# via | ||
# -r pytest.env.txt | ||
# nbformat | ||
fonttools==4.39.4 | ||
# via | ||
# -r pytest.env.txt | ||
# matplotlib | ||
h5py==3.8.0 | ||
# via | ||
# -r pytest.env.txt | ||
# pyscf | ||
idna==3.4 | ||
# via | ||
# -r pytest.env.txt | ||
# requests | ||
iniconfig==2.0.0 | ||
# via | ||
# -r pytest.env.txt | ||
# pytest | ||
jax==0.4.14 | ||
# via -r deps/resource_estimates.txt | ||
jaxlib==0.4.14 | ||
# via -r deps/resource_estimates.txt | ||
jsonschema==4.17.3 | ||
# via | ||
# -r pytest.env.txt | ||
# nbformat | ||
jupyter-core==5.3.0 | ||
# via | ||
# -r pytest.env.txt | ||
# nbformat | ||
kiwisolver==1.4.4 | ||
# via | ||
# -r pytest.env.txt | ||
# matplotlib | ||
matplotlib==3.7.1 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
ml-dtypes==0.2.0 | ||
# via | ||
# jax | ||
# jaxlib | ||
mpmath==1.3.0 | ||
# via | ||
# -r pytest.env.txt | ||
# sympy | ||
nbformat==5.8.0 | ||
# via -r pytest.env.txt | ||
networkx==2.8.8 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
numpy==1.23.5 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
# contourpy | ||
# h5py | ||
# jax | ||
# jaxlib | ||
# matplotlib | ||
# ml-dtypes | ||
# opt-einsum | ||
# pandas | ||
# pyscf | ||
# scipy | ||
opt-einsum==3.3.0 | ||
# via jax | ||
packaging==23.1 | ||
# via | ||
# -r pytest.env.txt | ||
# deprecation | ||
# matplotlib | ||
# pytest | ||
pandas==2.0.1 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
pillow==9.5.0 | ||
# via | ||
# -r pytest.env.txt | ||
# matplotlib | ||
platformdirs==3.5.1 | ||
# via | ||
# -r pytest.env.txt | ||
# jupyter-core | ||
pluggy==1.0.0 | ||
# via | ||
# -r pytest.env.txt | ||
# pytest | ||
pubchempy==1.0.4 | ||
# via -r pytest.env.txt | ||
pyparsing==3.0.9 | ||
# via | ||
# -r pytest.env.txt | ||
# matplotlib | ||
pyrsistent==0.19.3 | ||
# via | ||
# -r pytest.env.txt | ||
# jsonschema | ||
pyscf==2.3.0 | ||
# via -r deps/resource_estimates.txt | ||
pytest==7.3.1 | ||
# via | ||
# -r pytest.env.txt | ||
# pytest-asyncio | ||
# pytest-cov | ||
# pytest-xdist | ||
pytest-asyncio==0.21.0 | ||
# via -r pytest.env.txt | ||
pytest-cov==4.0.0 | ||
# via -r pytest.env.txt | ||
pytest-xdist==3.3.1 | ||
# via -r pytest.env.txt | ||
python-dateutil==2.8.2 | ||
# via | ||
# -r pytest.env.txt | ||
# matplotlib | ||
# pandas | ||
pytz==2023.3 | ||
# via | ||
# -r pytest.env.txt | ||
# pandas | ||
requests==2.31.0 | ||
# via -r pytest.env.txt | ||
scipy==1.9.3 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
# jax | ||
# jaxlib | ||
# pyscf | ||
six==1.16.0 | ||
# via | ||
# -r pytest.env.txt | ||
# python-dateutil | ||
sortedcontainers==2.4.0 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
sympy==1.12 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
tomli==2.0.1 | ||
# via | ||
# -r pytest.env.txt | ||
# coverage | ||
# pytest | ||
tqdm==4.65.0 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
traitlets==5.9.0 | ||
# via | ||
# -r pytest.env.txt | ||
# jupyter-core | ||
# nbformat | ||
typing-extensions==4.6.0 | ||
# via | ||
# -r pytest.env.txt | ||
# cirq-core | ||
tzdata==2023.3 | ||
# via | ||
# -r pytest.env.txt | ||
# pandas | ||
urllib3==2.0.2 | ||
# via | ||
# -r pytest.env.txt | ||
# requests |
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
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
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
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
Oops, something went wrong.