chore: update supported versions of various tools, fix syntax issues #132
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| push: | |
| branches: [master] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.9, "3.10", "3.11", "3.12", "3.13"] | |
| include: | |
| - python-version: 3.9 | |
| toxenv: py39 | |
| - python-version: "3.10" | |
| toxenv: py310 | |
| - python-version: "3.11" | |
| toxenv: py311 | |
| - python-version: "3.12" | |
| toxenv: py312 | |
| - python-version: "3.13" | |
| toxenv: py313 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up poetry | |
| uses: Gr1N/setup-poetry@v9 | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pypoetry/virtualenvs | |
| key: ${{ runner.os }}-v2-poetry-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-v2-poetry-${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: poetry install | |
| - name: Tests | |
| run: | | |
| poetry run tox -e ${{ matrix.toxenv }} | |
| - name: Linters | |
| run: | | |
| poetry run tox -e lint | |
| if: matrix.python-version == '3.9' | |
| - name: Coverage | |
| run: | | |
| poetry run tox -e coverage | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| if: matrix.python-version == '3.9' |