Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Update pythonpackage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg authored Dec 18, 2021
1 parent f5fb10a commit 5a9afd8
Showing 1 changed file with 12 additions and 32 deletions.
44 changes: 12 additions & 32 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ jobs:
run: |
pip install https://github.com/bboe/coveralls-python/archive/github_actions.zip
coveralls
- name: Build and publish
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && runner.os != 'Linux'
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine wheel
pip wheel -w dist --no-deps .
twine upload dist/*
continue-on-error: true
complete_coveralls:
needs: test
runs-on: ubuntu-latest
Expand All @@ -51,30 +41,20 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
manylinux_sdist:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
wheels:
needs: test
runs-on: ubuntu-latest
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Build manylinux Python wheels
uses: datamade/python-wheels-manylinux-build@248b22d
with:
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38'
- uses: actions/setup-python@v2
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
- name: Build sdist
run: |
pip install cython numpy
python setup.py sdist
run: python setup.py sdist
- name: Publish wheels to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine
twine upload --skip-existing wheelhouse/*-manylinux1_x86_64.whl
twine upload dist/*
continue-on-error: true

0 comments on commit 5a9afd8

Please sign in to comment.