Skip to content

Improve Python type annotations #32

Improve Python type annotations

Improve Python type annotations #32

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
tags-ignore:
- 'v*' # Don't run these tests twice when cutting a new version.
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
os:
- "ubuntu-20.04"
- "macos-10.15"
- "windows-2019"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install pip and poetry
run: |
python3 -m pip install --upgrade pip wheel poetry
poetry config virtualenvs.in-project true
- name: Install the package
run: make install
- name: Check formatting (Ubuntu Python 3.8 only)
if: matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'
run: make fmt-check
- name: Run lint (Ubuntu Python 3.8 only)
if: matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'
run: make lint
- name: Run tests
run: make test