-
Notifications
You must be signed in to change notification settings - Fork 5
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 #17 from lixun910/master
patch 0.0.8-1
- Loading branch information
Showing
17 changed files
with
1,808 additions
and
577 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,55 @@ | ||
name: Ubuntu and Mac builds | ||
|
||
on: push | ||
|
||
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: pygeoda-${{ matrix.os }} | ||
path: wheelhouse/ | ||
|
||
- name: Publish to Pypi | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python3 -m twine upload wheelhouse/*.whl | ||
- name: Publish Source to Pypi | ||
if: matrix.os == 'macos-latest' && github.event_name == 'release' && github.event.action == 'created' | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python3 -m twine upload dist/*.tar.gz |
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,95 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Windows builds | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
windows_build: | ||
runs-on: windows-latest | ||
#if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | ||
|
||
strategy: | ||
matrix: | ||
msvc_arch: | ||
- amd64 | ||
- win32 | ||
|
||
python_ver: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- 3.9 | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup for Python 3.9 | ||
if: "contains(matrix.python_ver, '3.9')" | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: ${{ matrix.msvc_arch }} | ||
toolset: 14.2 | ||
|
||
- name: Setup for Python 3.6, 3.7, 3.8 | ||
if: "!contains(matrix.python_ver, '3.9')" | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: ${{ matrix.msvc_arch }} | ||
toolset: 14.1 | ||
|
||
- name: Setup Python Architecture x64 | ||
if: "contains(matrix.msvc_arch, 'amd64')" | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python_ver }} | ||
architecture: 'x64' | ||
|
||
- name: Setup Python Architecture x86 | ||
if: "!contains(matrix.msvc_arch, 'amd64')" | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python_ver }} | ||
architecture: 'x86' | ||
|
||
- name: Build and Test | ||
shell: pwsh | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools wheel virtualenv twine | ||
python -m virtualenv venv | ||
venv\\Scripts\\activate | ||
python setup.py build_ext --inplace | ||
python -m unittest | ||
- name: Build Wheels | ||
shell: pwsh | ||
run: | | ||
venv\\Scripts\\activate | ||
pip wheel -v -w wheelhouse --no-deps . | ||
dir wheelhouse/* | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: pygeoda-${{ matrix.python_ver }}-${{ matrix.msvc_arch }}-win | ||
path: wheelhouse/ | ||
|
||
- name: Publish to Pypi | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python -m twine upload wheelhouse/*.whl |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.