NEW: support of async hooks #103
Workflow file for this run
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: Unit tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Tox and other dependencies | |
run: pip install tox tox-docker wheel twine 'setuptools; python_version >= "3.12"' | |
- name: Run tests with Tox | |
# Run tox using the version of Python in `PATH` | |
run: tox -e py | |
- name: Test package build | |
run: | | |
python setup.py sdist bdist_wheel | |
twine check dist/* |