Add type hints #18
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: CI | |
on: [push] | |
jobs: | |
test: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: python -m pip install pytest Cython | |
- name: Install | |
run: python -m pip install -e . | |
- name: Test | |
run: python -m pytest | |
deploy: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
needs: [test] | |
if: startsWith(github.ref, 'refs/tags') | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # required for setuptools_scm | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Build wheels | |
uses: pypa/[email protected] | |
with: | |
output-dir: dist/ | |
env: | |
CIBW_BUILD: "cp3*-manylinux_x86_64" | |
- name: Make sdist | |
run: | | |
python -m pip install build | |
python -m build --sdist | |
ls -l dist/ | |
- name: Publish dev release to test PyPI | |
if: contains(github.ref, '.dev') | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.test_pypi_password }} | |
repository_url: https://test.pypi.org/legacy/ | |
- name: Publish to PyPI | |
if: "!contains(github.ref, '.dev')" | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} |