-
Notifications
You must be signed in to change notification settings - Fork 19
49 lines (41 loc) · 1.5 KB
/
build.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
name: Tests
on: [push, pull_request]
jobs:
build_wheels:
name: Build and test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
# - uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-build.txt
python -m pip install -r requirements-tests.txt
# For some reason, the created ndindex wheel issues the next error on Win:
# ImportError: DLL load failed while importing ndindex: %1 is not a valid Win32 application.
# As a workaround, we install ndindex from conda-forge, but this should be fixed somehow
# This has been fixed; see https://github.com/Quansight-Labs/ndindex/issues/156
# conda install -c conda-forge ndindex
python -m pip install -r requirements-runtime.txt
- name: Build
run: |
python setup.py build_ext --inplace
- name: Test
run: |
python -m pytest