-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move macos ci/cd to github actions (#62)
* move macos ci/cd to github actions * fix package test * use macos 11 * update cython version * downgrade runs-on * use cibuildwheel * fix syntax * fix syntax again * fix mac build * install platform * only build one wheel on macos * fix mac wheel build * fix 3.8 testing * skip animation on mac * skip all plotting on MacOS due to CIBuildWheel * add missing cameraposition to rst tests
- Loading branch information
1 parent
d37e673
commit fdc493b
Showing
10 changed files
with
172 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,66 @@ | ||
name: Mac Unit Testing and Deployment | ||
|
||
on: | ||
push: | ||
branches: "*" | ||
tags: "*" | ||
pull_request: | ||
branches: "**" | ||
|
||
jobs: | ||
macOS: | ||
runs-on: macos-latest | ||
name: Mac OS Unit Testing | ||
strategy: | ||
matrix: | ||
python-version: ['3.8'] | ||
|
||
env: | ||
SHELLOPTS: 'errexit:pipefail' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Build wheels | ||
uses: joerick/cibuildwheel@v2.0.1 | ||
env: | ||
CIBW_BEFORE_BUILD: pip install -r requirements_build.txt | ||
CIBW_BUILD: cp38-macosx_x86_64 | ||
|
||
- name: Build wheels | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
uses: joerick/cibuildwheel@v2.0.1 | ||
env: | ||
CIBW_BEFORE_BUILD: pip install -r requirements_build.txt | ||
CIBW_SKIP: pp* cp38-macosx_x86_64 | ||
|
||
- name: Show files | ||
run: ls -lh wheelhouse | ||
shell: bash | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: wheelhouse/*.whl | ||
|
||
- name: Install wheel | ||
run: | | ||
pip install wheelhouse/*38* | ||
- name: Test | ||
run: | | ||
pip install -r requirements_test.txt | ||
cd tests | ||
pytest -v | ||
- name: Upload to PyPi | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
run: | | ||
twine upload -u __token__ --skip-existing wheelhouse/* | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
setuptools>=41.0.0 | ||
wheel>=0.33.0 | ||
numpy<1.20.0 | ||
cython==0.29.21 | ||
cython==0.29.24 | ||
matplotlib |
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
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
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
Oops, something went wrong.