-
-
Notifications
You must be signed in to change notification settings - Fork 77
69 lines (67 loc) · 1.97 KB
/
test-mac.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
name: Mac tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Py${{ matrix.PYTHON_VERSION }}, ${{ matrix.INSTALL_TYPE }}
runs-on: macos-latest
env:
CI: 'true'
CODECOV_TOKEN: "273c981b-7851-4895-a4bb-07377c67791e"
OS: 'mac'
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
USE_CONDA: ${{ matrix.INSTALL_TYPE == 'conda' }}
USE_GDB: 'false'
strategy:
fail-fast: false
matrix:
INSTALL_TYPE: ['conda']
PYTHON_VERSION: ['3.9', '3.10', '3.11', '3.12']
timeout-minutes: 120
steps:
- name: checkout branch
uses: actions/checkout@v4
- name : Setup miniforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.PYTHON_VERSION }}
mamba-version: "*"
use-mamba: true
channels: conda-forge,defaults
channel-priority: true
activate-environment: test
miniforge-version: latest
- name: Create test environment
shell: bash -l {0}
run: bash -l .github/scripts/install.sh
- name: Show test environment
shell: bash -l {0}
run: |
conda info
conda list
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '22.7.0'
- name: Node and NPM version
shell: bash -l {0}
run: |
export PATH=/Users/runner/hostedtoolcache/node/22.7.0/x64/bin:$PATH
node -v
npm -v
- name: Build static resources
shell: bash -l {0}
run: |
export PATH=/Users/runner/hostedtoolcache/node/22.7.0/x64/bin:$PATH
python setup.py build_static
- name: Run tests
shell: bash -l {0}
run: python runtests.py || python runtests.py || python runtests.py || python runtests.py || python runtests.py
- name: Coverage
shell: bash -l {0}
run: codecov