auto format #96
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', '3.12'] | |
poetry-version: [1.6.1] | |
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 simple_html | |
- name: run tests | |
run: poetry run pytest | |
- name: run bench (pure python) | |
run: poetry run python -m bench.run | |
- name: compile | |
run: poetry run mypyc simple_html | |
- name: run bench (compiled) | |
run: poetry run python -m bench.run |