Skip to content

Commit

Permalink
This hopefully fixes the B3LYP tests remotely
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbaker1001 committed Sep 11, 2023
1 parent d347e12 commit 19b76b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/install_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Install extra example dependencies
run: |
pip install -e ".[examples]"
- name: Set environment variables for tests
run: |
PYSCF_CONFIG_FILE=".github/workflows/pyscf_conf.py"
- name: Run unit tests
run: |
pytest -v tests/unit/test_eigenproblem.py
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pyscf_conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B3LYP_WITH_VWN5 = True
2 changes: 2 additions & 0 deletions tests/integration/test_classical_functionals.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def test_lyp(mol):
test_lyp(mol)

#### B3LYP ####
# This test will only pass if you set B3LYP_WITH_VWN5 = True in pyscf_conf.py.
# See pyscf_conf.py in .github/workflows
@pytest.mark.parametrize("mol", mols)
def test_b3lyp(mol):
mf = dft.UKS(mol)
Expand Down

0 comments on commit 19b76b7

Please sign in to comment.