Skip to content

CI: improve security, add zizmor and trusted publishing #321

CI: improve security, add zizmor and trusted publishing

CI: improve security, add zizmor and trusted publishing #321

Workflow file for this run

name: Style checks
on:
push:
branches:
- v1.**
pull_request:
branches:
- main
- v1.**
permissions:
contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: |
pip install --upgrade pip
pip install pre-commit
pip list
- name: Lint
run: pre-commit run --all-files --show-diff-on-failure --color always