Skip to content

Commit

Permalink
Merge pull request #92 from lixun910/v1.0.2
Browse files Browse the repository at this point in the history
update to 1.0.2
  • Loading branch information
lixun910 authored Jan 11, 2022
2 parents ddd5d1f + b3feb03 commit b96ac33
Show file tree
Hide file tree
Showing 13 changed files with 31,414 additions and 732 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Ubuntu and Mac builds

on: [push, pull_request, workflow_dispatch]

jobs:
build_and_publish:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest

runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Install pacakges
run: python3 -m pip install --upgrade --upgrade-strategy eager twine cibuildwheel

#- name: Build and Test
# run: |
# python3 setup.py build_ext --inplace
# python3 -m unittest discover -v -s tests -p "test_*.py"

- name: Build Wheels
run: |
python3 -m cibuildwheel --output-dir wheelhouse
python3 setup.py sdist
ls -lrt wheelhouse/*
- uses: actions/upload-artifact@v2
with:
name: travel-time-${{ matrix.os }}
path: wheelhouse/

- name: Publish to Pypi
if: startsWith(github.ref, 'refs/tags/v')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python3 -m pip install --upgrade twine
python3 -m twine upload wheelhouse/*.whl
- name: Publish Source to Pypi
if: matrix.os == 'macos-latest' && startsWith(github.ref, 'refs/tags/v')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python3 -m twine upload dist/*.tar.gz
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ spatial_access.egg-info/
__pycache__
.cache
spatial_access/matrix.dSYM/
<<<<<<< Updated upstream
.vscode/settings.json
=======
.vscode/
>>>>>>> Stashed changes
_p2pExtension.cpython-39-darwin.so
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit b96ac33

Please sign in to comment.