--- name: QA env: CI_FORCE_COLORS_PRE_COMMIT: --color always on: # yamllint disable-line rule:truthy workflow_dispatch: push: tags: - "!*" branches: - main - "test-me-*" pull_request: branches: - "**" jobs: build: name: Run QA Tools runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v4 with: python-version: "3.12" - name: Display Python version run: python --version - name: Upgrade pip run: python -m pip install --upgrade pip - name: Install pipx run: python -m pip install --upgrade pipx - name: Install tox via pipx run: pipx install tox - name: Run pre-commit via tox run: tox -e pre-commit-run