-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from michaeltryby/dev-workflow
minimally functional actions file, for build-test
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build Wheels | ||
|
||
on: [push, pull_request] | ||
|
||
|
||
build_toolkit_win-mac: | ||
name: Build MacOS python 3.8 | ||
runs-on: macos-10.15 | ||
defaults: | ||
run: | ||
working-directory: ./owa-epanet | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install required system packages | ||
run: brew install swig | ||
|
||
- name: Build wheel | ||
run: | | ||
pip install scikit-build | ||
python setup.py bdist_wheel | ||
- name: Test wheel | ||
run: | | ||
pip install pytest | ||
pip install --no-index --find-links=./dist owa-epanet | ||
pytest | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: owa-epanet/dist/*.whl |