-
Notifications
You must be signed in to change notification settings - Fork 105
79 lines (66 loc) · 2.47 KB
/
ci_chemistry_madness.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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Test-Madness
on:
push:
branches: [ master, devel ]
pull_request:
branches: [ master, devel ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: madness basics
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .
cd tests
ls
pytest test_chemistry_madness.py
cd ../
- name: Install and test madness interface
run: |
echo "done"
sudo echo "#!/bin/bash" > pno_integrals
sudo echo "name=\$(docker run -t -d kottmanj/mra-pno)" >> pno_integrals
sudo echo "sudo docker cp input \$name:/" >> pno_integrals
sudo echo "sudo docker exec \$name pno_integrals > pno.out" >> pno_integrals
sudo echo "sudo docker cp \$name:molecule_htensor.bin ." >> pno_integrals
sudo echo "sudo docker cp \$name:molecule_gtensor.bin ." >> pno_integrals
sudo echo "sudo docker cp \$name:pnoinfo.txt ." >> pno_integrals
sudo echo "sudo docker stop \$name" >> pno_integrals
sudo echo "sudo docker rm \$name" >> pno_integrals
echo "asd"
cat pno_integrals
chmod +X pno_integrals
#sudo ln -s pno_integrals /usr/sbin/pno_integrals
#echo $PATH
sudo mkdir /madroot
sudo mkdir /madroot/src
sudo mkdir /madroot/src/apps/
sudo mkdir /madroot/src/apps/pno/
sudo mv pno_integrals /madroot/src/apps/pno/
export MAD_ROOT_DIR=/madroot/
echo $MAD_ROOT_DIR
chmod +x ${MAD_ROOT_DIR}/src/apps/pno/pno_integrals
ls -l ${MAD_ROOT_DIR}/src/apps/pno/
echo "get docker image"
sudo docker pull kottmanj/mra-pno
sudo docker images
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .
python -m pip install pytest
cd tests
python test_chemistry_madness.py
pytest test_chemistry_madness.py
cd ../