-
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.
build: don't ship cythonized wheel for now (and add isgeneratorfuncti…
…on test) (#27) * test: add generator test * test: fail fast false * fix: don't ship compiled * fix: raise error when injecting processors on generator function * build: skip cython on build
- Loading branch information
1 parent
8f3b565
commit a5c1803
Showing
3 changed files
with
107 additions
and
44 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 |
---|---|---|
|
@@ -60,7 +60,7 @@ jobs: | |
runs-on: ${{ matrix.platform }} | ||
|
||
strategy: | ||
fail-fast: true | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
platform: ["ubuntu-latest"] | ||
|
@@ -105,55 +105,92 @@ jobs: | |
fail_ci_if_error: true | ||
verbose: true | ||
|
||
build: | ||
name: Build wheels on ${{ matrix.os }} | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-10.15] | ||
# SKIPPING CYTHON WHEELS UNTIL # https://github.com/cython/cython/issues/4888 | ||
# build: | ||
# name: Build wheels on ${{ matrix.os }} | ||
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# os: [ubuntu-20.04, windows-2019, macos-10.15] | ||
|
||
# steps: | ||
# - uses: actions/checkout@v3 | ||
|
||
# - uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: "3.9" | ||
|
||
# - name: Build wheels | ||
# uses: pypa/[email protected] | ||
|
||
# - uses: actions/upload-artifact@v3 | ||
# with: | ||
# path: ./wheelhouse/*.whl | ||
|
||
# - name: Build sdist | ||
# if: matrix.os == 'ubuntu-20.04' | ||
# run: | | ||
# python -m pip install build | ||
# python -m build --sdist | ||
|
||
# - uses: actions/upload-artifact@v3 | ||
# if: matrix.os == 'ubuntu-20.04' | ||
# with: | ||
# path: dist/*.tar.gz | ||
|
||
# upload_pypi: | ||
# name: Deploy | ||
# needs: [check-manifest, build] | ||
# runs-on: ubuntu-latest | ||
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
# steps: | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: artifact | ||
# path: dist | ||
|
||
# - uses: pypa/[email protected] | ||
# with: | ||
# user: __token__ | ||
# password: ${{ secrets.pypi_token }} | ||
|
||
# - uses: softprops/action-gh-release@v1 | ||
# with: | ||
# generate_release_notes: true | ||
|
||
|
||
deploy: | ||
name: Deploy | ||
needs: test | ||
if: "success() && startsWith(github.ref, 'refs/tags/')" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
python-version: "3.x" | ||
|
||
- name: Build sdist | ||
if: matrix.os == 'ubuntu-20.04' | ||
- name: install | ||
run: | | ||
python -m pip install build | ||
python -m build --sdist | ||
- uses: actions/upload-artifact@v3 | ||
if: matrix.os == 'ubuntu-20.04' | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
upload_pypi: | ||
name: Deploy | ||
needs: [check-manifest, build] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: dist | ||
git tag | ||
pip install -U pip | ||
pip install -U build twine | ||
python -m build | ||
twine check dist/* | ||
ls -lh dist | ||
env: | ||
SKIP_CYTHON: 1 | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_token }} | ||
- name: Build and publish | ||
run: twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
|
||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
|
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