Skip to content

Commit 9f552fb

Browse files
authored
Merge pull request #76 from michaeltryby/dev-workflow
minimally functional actions file, for build-test
2 parents 85fe99b + d76c7f0 commit 9f552fb

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build Wheels
2+
3+
on: [push, pull_request]
4+
5+
6+
build_toolkit_win-mac:
7+
name: Build MacOS python 3.8
8+
runs-on: macos-10.15
9+
defaults:
10+
run:
11+
working-directory: ./owa-epanet
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
19+
- name: Install Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.8
23+
24+
- name: Install required system packages
25+
run: brew install swig
26+
27+
- name: Build wheel
28+
run: |
29+
pip install scikit-build
30+
python setup.py bdist_wheel
31+
32+
- name: Test wheel
33+
run: |
34+
pip install pytest
35+
pip install --no-index --find-links=./dist owa-epanet
36+
pytest
37+
38+
- name: Upload artifacts
39+
uses: actions/upload-artifact@v2
40+
with:
41+
path: owa-epanet/dist/*.whl

0 commit comments

Comments
 (0)