Skip to content

wip

wip #114

Workflow file for this run

name: push actions
on: [push]
jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
poetry-version: [1.6]
os: [ubuntu-22.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/actions-poetry@v2.0.0
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 || matrix.python-version == '3.12'
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 || matrix.python-version == '3.12'
run: poetry run flake8
- name: benchmarks
run: poetry run python -m bench.run