-
Notifications
You must be signed in to change notification settings - Fork 11
85 lines (71 loc) · 2.01 KB
/
continuous.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
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CTEST_OUTPUT_ON_FAILURE: ON
CTEST_PARALLEL_LEVEL: 2
defaults:
run:
shell: bash -el {0}
jobs:
Build:
name: ${{ matrix.name }} (${{ matrix.config }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macOS-13, windows-2019]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
config: [Debug, Release]
include:
- os: ubuntu-22.04
name: Linux
- os: windows-2019
name: Windows
- os: macos-13
name: macOS
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 10
submodules: "recursive"
- name: Setup NMake (Windows)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
channels: conda-forge
python-version: ${{ matrix.python-version }}
channel-priority: true
activate-environment: test-env
- name: Install Dependencies
run: conda install numpy svgwrite cmake git -y
- name: Install Dependencies (Windows)
if: runner.os == 'Windows'
run: conda install mpir -y
- name: Envs (Windows)
if: runner.os == 'Windows'
run: echo "CMAKE_GENERATOR=NMake Makefiles" >> $GITHUB_ENV
- name: Configure git
run: git config --global http.version HTTP/1.1
- name: Build (Debug)
if: matrix.config == 'Debug'
run: python -m pip install -v --debug .
- name: Build (Release)
if: matrix.config == 'Release'
run: python -m pip install -v .
- name: Fast Tests
run: |
python test/tri_test.py
python test/small_tet_test.py
- name: Slow Tests
if: matrix.config == 'Release'
run: |
python test/tet_test.py