Skip to content

fix: move Literal import to typing_extensions #152

fix: move Literal import to typing_extensions

fix: move Literal import to typing_extensions #152

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
lint-mypy:
name: Lint, Mypy
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
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 dependencies
run: pip install tox
- name: Check code quality with flake8
run: tox -e lint
- name: Check static typing with MyPy
run: tox -e mypy
tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
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 dependencies
run: pip install tox
- name: Test with pytest and generate coverage file
run: tox -e py
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v1
if: success()
with:
file: coverage.xml