-
Notifications
You must be signed in to change notification settings - Fork 8
63 lines (49 loc) · 1.4 KB
/
build_wheels.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
name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-2022]
steps:
- uses: lukka/get-cmake@latest
- uses: awvwgk/setup-fortran@main
id: setup-fortran
with:
compiler: gcc
version: 11
- uses: actions/checkout@v2
- name: Build wheels
uses: pypa/[email protected]
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- uses: awvwgk/setup-fortran@main
id: setup-fortran
with:
compiler: gcc
version: 11
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
- name: install numbalsoda
working-directory: ${{github.workspace}}
run: python -m pip install . -v
- name: test numbalsoda
working-directory: ${{github.workspace}}/tests
run: pytest