update dev dependencies (#23) #109
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: push actions | |
on: [push] | |
jobs: | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8, 3.9, '3.10', '3.11'] | |
poetry-version: [1.2.2] | |
os: [ubuntu-20.04, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run image | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: poetry install | |
run: poetry install | |
- name: mypy | |
run: poetry run mypy . --exclude tests | |
- name: run 3.9- tests | |
if: matrix.python-version == 3.8 || matrix.python-version == 3.9 | |
run: poetry run pytest --ignore tests/test_310.py | |
- name: run 3.10+ tests | |
if: matrix.python-version == 3.10 || matrix.python-version == 3.11 | |
run: poetry run pytest | |
- name: linting 3.9- | |
if: matrix.python-version == 3.8 || matrix.python-version == 3.9 | |
run: poetry run flake8 --exclude tests/test_310.py | |
- name: linting 3.10+ | |
if: matrix.python-version == 3.10 || matrix.python-version == 3.11 | |
run: poetry run flake8 | |
- name: benchmarks | |
run: poetry run python -m bench.run |