chore: Convert to poetry / pytest, support up to py 3.12, remove py 2 #3
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: Tests | |
on: [pull_request] | |
jobs: | |
test: | |
name: test py${{ matrix.py }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
py: | |
- "3.12" | |
- "3.11" | |
- "3.10" | |
- "3.9" | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.py }} | |
- uses: actions/checkout@v3 | |
- run: | | |
pip install poetry | |
poetry install | |
- run: | | |
poetry run flake8 | |
- run: | | |
poetry run pytest |