Skip to content

Bump version: 0.6.1 → 0.6.2 #91

Bump version: 0.6.1 → 0.6.2

Bump version: 0.6.1 → 0.6.2 #91

Workflow file for this run

name: CI
on:
push:
branches: ["*"]
tags: ["*"]
pull_request:
branches: ["*"]
jobs:
build_and_push:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-2022]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install cibuildwheel
run: python -m pip install --user cibuildwheel==2.18.1
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_TEST: pip install -r requirements-dev.txt
CIBW_TEST_COMMAND: pytest {project}/tests
CIBW_BUILD: cp3{8,9,10,11,12}-{manylinux_x86_64,win_amd64}
- uses: actions/upload-artifact@v4
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
with:
name: wheels-${{ runner.os }}
path: wheelhouse/*.whl
publish:
name: Publish to PyPI
needs: build_and_push
runs-on: ubuntu-20.04
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/download-artifact@v4
with:
path: wheelhouse
merge-multiple: true
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
pip install -r requirements.txt
pip install twine
python setup.py sdist
twine upload dist/*
twine upload wheelhouse/*.whl
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/*
wheelhouse/*.whl