Skip to content

maint: Enable -Werror compiler flag for GCC, Clang and AppleClang #8627

maint: Enable -Werror compiler flag for GCC, Clang and AppleClang

maint: Enable -Werror compiler flag for GCC, Clang and AppleClang #8627

Workflow file for this run

name: Linters
on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
PRE_COMMIT_USE_MICROMAMBA: 1
steps:
- uses: actions/checkout@v4
- name: Install pre-commit
uses: mamba-org/setup-micromamba@v1
with:
environment-name: linters
create-args: pre-commit
- name: Add micromamba to GITHUB_PATH
run: echo "${HOME}/micromamba-bin" >> $GITHUB_PATH
- name: Run all linters
shell: micromamba-shell {0}
run: |
pre-commit run --all-files --verbose --show-diff-on-failure