-
Notifications
You must be signed in to change notification settings - Fork 22
111 lines (111 loc) · 4.68 KB
/
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: tests
on: [push, pull_request]
jobs:
test-bindings-linux:
runs-on: ubuntu-latest
strategy:
matrix:
btype: [Release, Debug]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: sudo apt update
- run: sudo apt install build-essential cmake libblas-dev liblapack-dev
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install numpy scipy matplotlib nose2 networkx
- run: cmake -D CMAKE_BUILD_TYPE=${{ matrix.btype }} -D WRAP_PYTHON=ON .
- run: make -j 2
- run: nose2 --output-buffer
test-base-linux:
runs-on: ubuntu-latest
strategy:
matrix:
btype: [Release, Debug]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: sudo apt update
- run: sudo apt install build-essential cmake libblas-dev liblapack-dev valgrind
- run: cmake -D CMAKE_BUILD_TYPE=${{ matrix.btype }} -D BUILD_UTILS=ON .
- run: make -j 2
- run: test/drivers/test_drivers.sh
- run: cd profiling && ./check_memory.sh
test-bindings-mac:
runs-on: macos-latest
strategy:
matrix:
btype: [Release, Debug]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: brew update
- run: brew install cmake openblas superlu 1>/dev/null || true
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: pip3 install networkx numpy scipy matplotlib nose2
- run: cmake -D CMAKE_BUILD_TYPE=${{ matrix.btype }} -D WRAP_PYTHON=ON -D PYTHON_EXECUTABLE=$(python3-config --prefix)/bin/python3.11 -D PYTHON_LIBRARY=$(python3-config --prefix)/lib/libpython3.11.dylib -D PYTHON_INCLUDE_DIR=$(python3-config --prefix)/include/python3.11 -D USE_OPENMP=OFF .
- run: make -j 2
- run: nose2 --output-buffer
test-base-mac:
runs-on: macos-latest
strategy:
matrix:
btype: [Release, Debug]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: brew update
- run: brew install cmake openblas superlu gfortran valgrind 1>/dev/null || true
- run: brew reinstall gcc
- run: cmake -D CMAKE_CXX_COMPILER=/usr/bin/g++ -D CMAKE_C_COMPILER=/usr/bin/gcc -D CMAKE_Fortran_COMPILER=/usr/local/bin/gfortran -D CMAKE_BUILD_TYPE=${{ matrix.btype }} -D USE_OPENMP=OFF -D BUILD_UTILS=ON .
- run: make -j 2
- run: test/drivers/test_drivers.sh
- run: cd profiling && ./check_memory.sh
test-bindings-windows:
runs-on: windows-latest
strategy:
matrix:
btype: [Release]
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-toolchain base-devel mingw-w64-x86_64-openblas mingw-w64-x86_64-cmake mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-numpy mingw-w64-x86_64-python-scipy mingw-w64-x86_64-python-networkx mingw-w64-x86_64-python-matplotlib
- run: pip install nose2
- run: cmake . -G"MSYS Makefiles" -D"WRAP_PYTHON=ON" -D"CMAKE_BUILD_TYPE=${{ matrix.btype }}"
- run: make -j 2
- run: nose2 --output-buffer
test-base-windows:
runs-on: windows-latest
strategy:
matrix:
btype: [Release, Debug]
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-toolchain base-devel mingw-w64-x86_64-openblas mingw-w64-x86_64-cmake
- run: cmake . -G"MSYS Makefiles" -D"BUILD_UTILS=ON" -D"CMAKE_BUILD_TYPE=${{ matrix.btype }}"
- run: make -j 2
- run: PATH=$PATH:$PWD/lib ./test/drivers/test_drivers.sh