88 branches :
99 - master
1010
11- env :
12- CTEST_OUTPUT_ON_FAILURE : ON
13- CTEST_PARALLEL_LEVEL : 2
14-
1511jobs :
1612 Build :
17- name : ${{ matrix.name }} (${{ matrix.config }})
13+ name : ${{ matrix.name }} Python ${{ matrix.python-version }} (${{ matrix.config }})
1814 runs-on : ${{ matrix.os }}
1915 strategy :
2016 fail-fast : false
2117 matrix :
22- os : [ubuntu-18.04, windows-2019]
18+ os : [ubuntu-latest, windows-latest, macOS-latest]
19+ python-version : [3.6, 3.7, 3.8]
2320 config : [Debug, Release]
2421 include :
25- - os : ubuntu-18.04
22+ - os : ubuntu-latest
2623 name : Linux
27- - os : windows-2019
24+ - os : windows-latest
2825 name : Windows
26+ - os : macOS-latest
27+ name : MacOS
2928 steps :
3029 - name : Checkout repository
31- uses : actions/checkout@v1
30+ uses : actions/checkout@v2
3231 with :
3332 fetch-depth : 10
3433
@@ -39,25 +38,36 @@ jobs:
3938 - name : Stetup Conda
4039 uses : s-weigand/setup-conda@v1
4140 with :
41+ update-conda : true
42+ python-version : ${{ matrix.python-version }}
4243 conda-channels : anaconda, conda-forge
43- python-version : 3.6
4444
4545 - name : Install Dependencies
46- run : conda install numpy libblas libcblas suitesparse plotly -y
46+ run : |
47+ conda install numpy libblas libcblas suitesparse plotly -y
4748
4849 - name : Envs (Windows)
4950 if : runner.os == 'Windows'
50- run : echo "CMAKE_GENERATOR=NMake Makefiles" >> $GITHUB_ENV
51+ run : |
52+ echo "CMAKE_GENERATOR=NMake Makefiles" >> $GITHUB_ENV
53+ echo "CXX=cl.exe" >> $GITHUB_ENV
54+ echo "CC=cl.exe" >> $GITHUB_ENV
55+ conda init powershell
5156
5257 - name : Build (Debug)
5358 if : matrix.config == 'Debug'
54- run : python setup.py build --debug install
59+ run : |
60+ python setup.py build --debug install
5561
62+ # windows has problem with memory and 2 passes...
5663 - name : Build (Release)
57- if : matrix.config == 'Release'
58- run : python setup.py build install
64+ if : matrix.config == 'Release' && runner.os != 'Windows'
65+ run : |
66+ python setup.py build install
5967
68+ # macos segfaults???
6069 - name : Tests
70+ if : matrix.name == 'Linux' || (matrix.config == 'Debug' && runner.os == 'Windows')
6171 run : |
6272 python test/test_bending.py
6373 python test/test_gravity.py
0 commit comments