Skip to content

[pre-commit.ci] pre-commit autoupdate (#12) #27

[pre-commit.ci] pre-commit autoupdate (#12)

[pre-commit.ci] pre-commit autoupdate (#12) #27

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [3.9, '3.10', '3.11', '3.12']
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
- name: Install Tox
run: |
pip install "tox>=4.18.1,<5"
- name: Lint Codebase
run: |
RAW_PYTHON_VERSION=${{ matrix.version }}
PYTHON_VERSION=$(echo $RAW_PYTHON_VERSION | sed 's/\.//')
tox -e py$PYTHON_VERSION