-
Notifications
You must be signed in to change notification settings - Fork 181
66 lines (55 loc) · 1.34 KB
/
quick_wheel_test.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
name: Quick Wheel test
on:
# allows running workflows manually
workflow_dispatch:
pull_request:
branches:
- develop
paths-ignore:
- docs/**
push:
branches:
- scikit-build-core
paths-ignore:
- docs/**
jobs:
main:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, macos-14]
steps:
- name: Additional macOS settings
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
shell: bash -l {0}
run: |
echo "FC=$(which gfortran-13)" >> $GITHUB_ENV
# hdf5 is needed for building tables
brew install hdf5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Checkout repository
uses: actions/checkout@v3
- name: Build wheels
shell: bash -l {0}
run: |
pip install build
python -m build --wheel
- name: Install PyNE
shell: bash -l {0}
run: |
pip install dist/pyne*.whl
- name: Nuc data make
shell: bash -l {0}
run: |
nuc_data_make
- name: Test PyNE
shell: bash -l {0}
run: |
cd tests
pip install pytest
pytest -ra