Skip to content

Bump version: 0.1.0 → 0.1.1 #17

Bump version: 0.1.0 → 0.1.1

Bump version: 0.1.0 → 0.1.1 #17

name: build
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- name: 'check'
python: '3.11'
toxpython: 'python3.11'
tox_env: 'check'
os: 'ubuntu-latest'
- name: 'docs'
python: '3.11'
toxpython: 'python3.11'
tox_env: 'docs'
os: 'ubuntu-latest'
- name: 'py311-cover (ubuntu/x86_64)'
python: '3.11'
toxpython: 'python3.11'
python_arch: 'x64'
tox_env: 'py311-cover'
cover: true
cibw_arch: 'x86_64'
cibw_build: false
os: 'ubuntu-latest'
- name: 'py311-nocov (ubuntu/x86_64/manylinux)'
python: '3.11'
toxpython: 'python3.11'
python_arch: 'x64'
tox_env: 'py311-nocov'
cibw_arch: 'x86_64'
cibw_build: 'cp311-*manylinux*'
os: 'ubuntu-latest'
steps:
- uses: docker/setup-qemu-action@v2
if: matrix.cibw_arch == 'aarch64'
with:
platforms: arm64
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.python_arch }}
- name: install dependencies
run: |
python -mpip install --progress-bar=off cibuildwheel -r ci/requirements.txt
virtualenv --version
pip --version
tox --version
pip list --format=freeze
- name: cibw build and test
if: matrix.cibw_build
run: cibuildwheel
env:
TOXPYTHON: '${{ matrix.toxpython }}'
CIBW_ARCHS: '${{ matrix.cibw_arch }}'
CIBW_BUILD: '${{ matrix.cibw_build }}'
CIBW_BUILD_VERBOSITY: '3'
CIBW_TEST_REQUIRES: >
tox
tox-direct
CIBW_TEST_COMMAND: >
cd {project} &&
tox --skip-pkg-install --direct-yolo -e ${{ matrix.tox_env }} -v
CIBW_TEST_COMMAND_WINDOWS: >
cd /d {project} &&
tox --skip-pkg-install --direct-yolo -e ${{ matrix.tox_env }} -v
- name: regular build and test
env:
TOXPYTHON: '${{ matrix.toxpython }}'
if: >
!matrix.cibw_build
run: >
tox -e ${{ matrix.tox_env }} -v
- uses: coverallsapp/github-action@v2
if: matrix.cover
continue-on-error: true
with:
parallel: true
flag-name: ${{ matrix.tox_env }}
- uses: codecov/codecov-action@v3
if: matrix.cover
with:
verbose: true
flags: ${{ matrix.tox_env }}
- name: check wheel
if: matrix.cibw_build
run: twine check wheelhouse/*.whl
- name: upload wheel
uses: actions/upload-artifact@v3
if: matrix.cibw_build
with:
path: wheelhouse/*.whl
finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@v2
with:
parallel-finished: true