-
-
Notifications
You must be signed in to change notification settings - Fork 6
78 lines (77 loc) · 1.88 KB
/
tests.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
name: Run Tests
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
run: |
sudo apt-get install sox ninja-build
- name: Build
run: |
mkdir build
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Debug
cmake --build build
- name: Run tests
run: |
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target check
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- run: pip freeze
- run: pip install "setuptools>=61.2"
- run: pip freeze
- name: Install
run: |
pip3 install .[dev]
- name: Run tests
run: python3 -m pytest
wintest:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install
run: |
pip3 install .[dev]
- name: Run tests
run: python3 -m pytest
mactest:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install
run: |
pip install .[dev]
- name: Run tests
run: python -m pytest
nodetest:
runs-on: ubuntu-latest
steps:
- name: Install Build Dependencies
uses: mymindstorm/setup-emsdk@v14
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
emcmake cmake -S . -B jsbuild
cmake --build jsbuild
- name: Run tests
run: |
(cd jsbuild && npm install --also=dev)
(cd jsbuild && npm test)
(cd jsbuild && npm run tstest)