Skip to content

Fix up AttributeError with TYPE_CHECKING #90

Fix up AttributeError with TYPE_CHECKING

Fix up AttributeError with TYPE_CHECKING #90

Workflow file for this run

name: tests
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
FORCE_COLOR: "1"
TOX_TESTENV_PASSENV: "FORCE_COLOR"
MIN_PYTHON_VERSION: "3.9"
DEFAULT_PYTHON_VERSION: "3.13"
jobs:
tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade pip
- run: pip install tox
- run: tox -e py
lint:
strategy:
fail-fast: false
matrix:
job: [pep8, release-check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: 3.x
- run: pip install --upgrade pip
- run: pip install tox
- run: tox -e ${{ matrix.job }}