-
Notifications
You must be signed in to change notification settings - Fork 30
executable file
·80 lines (66 loc) · 2.26 KB
/
run_psi4_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: psi4 test
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: anaconda-client-env
- run: conda info
- run: conda list
- run: conda config --show
- name: Install psi4 ${{ matrix.python-version }}
shell: bash -el {0}
run: |
conda install psi4 python=${{ matrix.python-version }} -c conda-forge/label/libint_dev -c conda-forge
conda init
if: always()
- name: Install pip, wheel, pytest, jupyter, openbabel, rdkit, openmm
run: |
python -m pip install --upgrade pip
pip install wheel
pip install pytest
pip install pytest-cov
pip install rdkit
pip install openbabel-wheel
conda install -c conda-forge openmm
- name: Install qulacs
run: |
pip install qulacs
if: always()
- name: tangelo install
run: |
python -m pip install .
if: always()
- name: tangelo psi4 integral tests
run: |
cd tangelo/toolboxes/molecular_computation/tests
pytest --doctest-modules --junitxml=junit/psi4-test-results_${{ matrix.python-version }}.xml test_psi4.py
if: always()
- name: tangelo psi4 classical tests
run: |
cd tangelo/algorithms/classical/tests
pytest --doctest-modules --junitxml=junit/psi4-classical-test-results_${{ matrix.python-version }}.xml
if: always()
- name: Upload psi4 test results
uses: actions/upload-artifact@v3
with:
name: tangelo-psi4-test-results
path: tangelo/toolboxes/molecular_computation/tests/junit/psi4-test-results_${{ matrix.python-version }}.xml
- name: Upload classical psi4 test results
uses: actions/upload-artifact@v3
with:
name: tangelo-classical-psi4-test-results
path: tangelo/algorithms/classical/tests/junit/psi4-classical-test-results_${{ matrix.python-version }}.xml
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
if: always()