Skip to content

Commit

Permalink
adcc again
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Aug 1, 2023
1 parent 48cad55 commit feeb818
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,12 @@ jobs:
run: |
qcore --accept-license
- name: Special Config - QCElemental Dep
if: (matrix.cfg.label == 'ADCC')
run: |
conda remove qcelemental --force
python -m pip install qcelemental>=0.26.0 --no-deps
# note: psi4 on c-f pins to a single qcel and qcng, so this may be handy for solve-and-replace
#- name: Special Config - QCElemental Dep
# if: (matrix.cfg.label == 'ADCC')
# run: |
# conda remove qcelemental --force
# python -m pip install qcelemental>=0.26.0 --no-deps

# note: conda remove --force, not mamba remove --force b/c https://github.com/mamba-org/mamba/issues/412
# alt. is micromamba but not yet ready for setup-miniconda https://github.com/conda-incubator/setup-miniconda/issues/75
Expand All @@ -115,7 +116,7 @@ jobs:
# QCEngine CI and Psi4 are circularly dependent, so a hack is in order
- name: Special Config - Faux Pydantic Upgrade
if: "(matrix.cfg.label == 'Psi4-nightly') || (matrix.cfg.label == 'ADCC') || (matrix.cfg.label == 'optimization-dispersion')"
if: "(matrix.cfg.label == 'Psi4-nightly') || (matrix.cfg.label == 'optimization-dispersion')"
run: |
sed -i s/from\ pydantic\ /from\ pydantic.v1\ /g ${CONDA_PREFIX}/lib/python${{ matrix.cfg.python-version }}/site-packages/psi4/driver/*py
Expand Down
2 changes: 1 addition & 1 deletion devtools/conda-envs/adcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
- py-cpuinfo
- psutil
- qcelemental >=0.24.0
- pydantic>=2
- pydantic=1
- msgpack-python

# Testing
Expand Down
2 changes: 1 addition & 1 deletion qcengine/tests/test_harness_canonical.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_compute_gradient(program, model, keywords):
with pytest.raises(qcng.exceptions.InputError) as e:
qcng.compute(inp, program, raise_error=True)

assert "Driver gradient not implemented" in str(e.value)
assert "gradient not implemented" in str(e.value)

else:
ret = qcng.compute(inp, program, raise_error=True)
Expand Down

0 comments on commit feeb818

Please sign in to comment.