-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (40 loc) · 1.24 KB
/
ci.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
name: cint pipeline
on:
- push
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-20.04]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Compile
run: |
env
cmake -DWITH_RANGE_COULOMB=1 -DWITH_COULOMB_ERF=1 -DWITH_F12=1 -Bbuild -DKEEP_GOING=1 .
cmake --build build
pip install numpy mpmath pyscf
- name: Test for rys-roots
if: startsWith(matrix.os, 'ubuntu')
run: |
cd ${{ github.workspace }}/tests
python test_rys_roots.py
- name: Unittest
if: startsWith(matrix.os, 'ubuntu')
run: |
cd ${{ github.workspace }}/tests
for i in test_cint.py test_3c2e.py; do
echo $i
curl -O https://raw.githubusercontent.com/sunqm/libcint/master/testsuite/$i
python $i --quick
done
for i in test_c2s.py test_int1e_grids.py test_int1e.py test_int2c2e.py test_int3c1e.py; do
echo $i
curl -O https://raw.githubusercontent.com/sunqm/libcint/master/testsuite/$i
python $i
done