Debian Codegraph @

07p/.github/workflows/test.yml

raw symbols SCIP
1 name: CI
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7 runs-on: ubuntu-latest
8 steps:
9 - uses: actions/checkout@v1
10 - name: Install dependencies
11 run: |
12 sudo apt-get update
13 sudo apt-get install gfortran libsoqt4-dev libmotif-dev
14 sudo apt-get install python-matplotlib python3-matplotlib
15 sudo apt-get install openmpi-bin libopenmpi-dev
16 sudo apt-get install texlive texlive-latex-extra transfig
17 - name: Compile
18 run: |
19 # compile auto
20 ./configure --enable-gui --with-mpi
21 make
22 # compile manual
23 make -C doc auto.pdf ../plaut04/doc/userguide.pdf
24 - name: Run test (python2)
25 run: |
26 export OMPI_MCA_btl="^openib"
27 cd test
28 python2 ../python/auto all.auto
29 mv *_log07p python2log.txt
30 - uses: actions/upload-artifact@v1
31 with:
32 name: python2log
33 path: test/python2log.txt
34 - uses: actions/upload-artifact@v1
35 with:
36 name: python2verification
37 path: test/verification
38 - name: Run test (python3)
39 run: |
40 export OMPI_MCA_btl="^openib"
41 cd test
42 python3 ../python/auto all.auto
43 mv *_log07p python3log.txt
44 - uses: actions/upload-artifact@v1
45 with:
46 name: python3log
47 path: test/python3log.txt
48 - uses: actions/upload-artifact@v1
49 with:
50 name: python3verification
51 path: test/verification
52 - name: Run test (MPI + python3)
53 run: |
54 export AUTO_COMMAND_PREFIX="mpirun -n 2"
55 export OMP_NUM_THREADS=1
56 export OMPI_MCA_btl="^openib"
57 cd test
58 python3 ../python/auto all.auto
59 mv *_log07p python3mpilog.txt
60 - uses: actions/upload-artifact@v1
61 with:
62 name: python3mpilog
63 path: test/python3mpilog.txt
64 - uses: actions/upload-artifact@v1
65 with:
66 name: python3mpiverification
67 path: test/verification