Refactor import statements in __init__.py #6
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
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: 'py39-cover (ubuntu/x86_64)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x64' | |
tox_env: 'py39-cover' | |
cover: true | |
cibw_arch: 'x86_64' | |
cibw_build: false | |
os: 'ubuntu-latest' | |
- name: 'py39-cover (windows/AMD64)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x64' | |
tox_env: 'py39-cover' | |
cover: true | |
cibw_arch: 'AMD64' | |
cibw_build: false | |
os: 'windows-latest' | |
- name: 'py39-cover (macos/x86_64)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x64' | |
tox_env: 'py39-cover' | |
cover: true | |
cibw_arch: 'x86_64' | |
cibw_build: false | |
os: 'macos-latest' | |
- name: 'py39-nocov (ubuntu/x86_64/manylinux)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x64' | |
tox_env: 'py39-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: 'cp39-*manylinux*' | |
os: 'ubuntu-latest' | |
- name: 'py39-nocov (ubuntu/x86_64/musllinux)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x64' | |
tox_env: 'py39-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: 'cp39-*musllinux*' | |
os: 'ubuntu-latest' | |
- name: 'py39-nocov (ubuntu/aarch64/manylinux)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x64' | |
tox_env: 'py39-nocov' | |
cibw_arch: 'aarch64' | |
cibw_build: 'cp39-*manylinux*' | |
os: 'ubuntu-latest' | |
- name: 'py39-nocov (ubuntu/aarch64/musllinux)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x64' | |
tox_env: 'py39-nocov' | |
cibw_arch: 'aarch64' | |
cibw_build: 'cp39-*musllinux*' | |
os: 'ubuntu-latest' | |
- name: 'py39-nocov (windows/AMD64)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x64' | |
tox_env: 'py39-nocov' | |
cibw_arch: 'AMD64' | |
cibw_build: 'cp39-*' | |
os: 'windows-latest' | |
- name: 'py39-nocov (windows/x86)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x86' | |
tox_env: 'py39-nocov' | |
cibw_arch: 'x86' | |
cibw_build: 'cp39-*' | |
os: 'windows-latest' | |
- name: 'py39-nocov (macos/x86_64)' | |
python: '3.9' | |
toxpython: 'python3.9' | |
python_arch: 'x64' | |
tox_env: 'py39-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: 'cp39-*' | |
os: 'macos-latest' | |
- name: 'py310-cover (ubuntu/x86_64)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x64' | |
tox_env: 'py310-cover' | |
cover: true | |
cibw_arch: 'x86_64' | |
cibw_build: false | |
os: 'ubuntu-latest' | |
- name: 'py310-cover (windows/AMD64)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x64' | |
tox_env: 'py310-cover' | |
cover: true | |
cibw_arch: 'AMD64' | |
cibw_build: false | |
os: 'windows-latest' | |
- name: 'py310-cover (macos/x86_64)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x64' | |
tox_env: 'py310-cover' | |
cover: true | |
cibw_arch: 'x86_64' | |
cibw_build: false | |
os: 'macos-latest' | |
- name: 'py310-nocov (ubuntu/x86_64/manylinux)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x64' | |
tox_env: 'py310-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: 'cp310-*manylinux*' | |
os: 'ubuntu-latest' | |
- name: 'py310-nocov (ubuntu/x86_64/musllinux)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x64' | |
tox_env: 'py310-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: 'cp310-*musllinux*' | |
os: 'ubuntu-latest' | |
- name: 'py310-nocov (ubuntu/aarch64/manylinux)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x64' | |
tox_env: 'py310-nocov' | |
cibw_arch: 'aarch64' | |
cibw_build: 'cp310-*manylinux*' | |
os: 'ubuntu-latest' | |
- name: 'py310-nocov (ubuntu/aarch64/musllinux)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x64' | |
tox_env: 'py310-nocov' | |
cibw_arch: 'aarch64' | |
cibw_build: 'cp310-*musllinux*' | |
os: 'ubuntu-latest' | |
- name: 'py310-nocov (windows/AMD64)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x64' | |
tox_env: 'py310-nocov' | |
cibw_arch: 'AMD64' | |
cibw_build: 'cp310-*' | |
os: 'windows-latest' | |
- name: 'py310-nocov (windows/x86)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x86' | |
tox_env: 'py310-nocov' | |
cibw_arch: 'x86' | |
cibw_build: 'cp310-*' | |
os: 'windows-latest' | |
- name: 'py310-nocov (macos/x86_64)' | |
python: '3.10' | |
toxpython: 'python3.10' | |
python_arch: 'x64' | |
tox_env: 'py310-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: 'cp310-*' | |
os: 'macos-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-cover (windows/AMD64)' | |
python: '3.11' | |
toxpython: 'python3.11' | |
python_arch: 'x64' | |
tox_env: 'py311-cover' | |
cover: true | |
cibw_arch: 'AMD64' | |
cibw_build: false | |
os: 'windows-latest' | |
- name: 'py311-cover (macos/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: 'macos-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' | |
- name: 'py311-nocov (ubuntu/x86_64/musllinux)' | |
python: '3.11' | |
toxpython: 'python3.11' | |
python_arch: 'x64' | |
tox_env: 'py311-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: 'cp311-*musllinux*' | |
os: 'ubuntu-latest' | |
- name: 'py311-nocov (ubuntu/aarch64/manylinux)' | |
python: '3.11' | |
toxpython: 'python3.11' | |
python_arch: 'x64' | |
tox_env: 'py311-nocov' | |
cibw_arch: 'aarch64' | |
cibw_build: 'cp311-*manylinux*' | |
os: 'ubuntu-latest' | |
- name: 'py311-nocov (ubuntu/aarch64/musllinux)' | |
python: '3.11' | |
toxpython: 'python3.11' | |
python_arch: 'x64' | |
tox_env: 'py311-nocov' | |
cibw_arch: 'aarch64' | |
cibw_build: 'cp311-*musllinux*' | |
os: 'ubuntu-latest' | |
- name: 'py311-nocov (windows/AMD64)' | |
python: '3.11' | |
toxpython: 'python3.11' | |
python_arch: 'x64' | |
tox_env: 'py311-nocov' | |
cibw_arch: 'AMD64' | |
cibw_build: 'cp311-*' | |
os: 'windows-latest' | |
- name: 'py311-nocov (windows/x86)' | |
python: '3.11' | |
toxpython: 'python3.11' | |
python_arch: 'x86' | |
tox_env: 'py311-nocov' | |
cibw_arch: 'x86' | |
cibw_build: 'cp311-*' | |
os: 'windows-latest' | |
- name: 'py311-nocov (macos/x86_64)' | |
python: '3.11' | |
toxpython: 'python3.11' | |
python_arch: 'x64' | |
tox_env: 'py311-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: 'cp311-*' | |
os: 'macos-latest' | |
- name: 'pypy39-cover (ubuntu/x86_64)' | |
python: 'pypy-3.9' | |
toxpython: 'pypy3.9' | |
python_arch: 'x64' | |
tox_env: 'pypy39-cover' | |
cover: true | |
cibw_arch: 'x86_64' | |
cibw_build: false | |
os: 'ubuntu-latest' | |
- name: 'pypy39-cover (windows/AMD64)' | |
python: 'pypy-3.9' | |
toxpython: 'pypy3.9' | |
python_arch: 'x64' | |
tox_env: 'pypy39-cover' | |
cover: true | |
cibw_arch: 'AMD64' | |
cibw_build: false | |
os: 'windows-latest' | |
- name: 'pypy39-cover (macos/x86_64)' | |
python: 'pypy-3.9' | |
toxpython: 'pypy3.9' | |
python_arch: 'x64' | |
tox_env: 'pypy39-cover' | |
cover: true | |
cibw_arch: 'x86_64' | |
cibw_build: false | |
os: 'macos-latest' | |
- name: 'pypy39-nocov (ubuntu/x86_64/manylinux)' | |
python: 'pypy-3.9' | |
toxpython: 'pypy3.9' | |
python_arch: 'x64' | |
tox_env: 'pypy39-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: false | |
os: 'ubuntu-latest' | |
- name: 'pypy39-nocov (windows/AMD64)' | |
python: 'pypy-3.9' | |
toxpython: 'pypy3.9' | |
python_arch: 'x64' | |
tox_env: 'pypy39-nocov' | |
cibw_arch: 'AMD64' | |
cibw_build: false | |
os: 'windows-latest' | |
- name: 'pypy39-nocov (macos/x86_64)' | |
python: 'pypy-3.9' | |
toxpython: 'pypy3.9' | |
python_arch: 'x64' | |
tox_env: 'pypy39-nocov' | |
cibw_arch: 'x86_64' | |
cibw_build: false | |
os: 'macos-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 |