Skip to content

Use a pre-commit workflow to check style #3

Use a pre-commit workflow to check style

Use a pre-commit workflow to check style #3

Workflow file for this run

name: Check style
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
check_style:
runs-on: ubuntu-latest
steps:
- name: Checkout preCICE
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
check-latest: true
- name: Install pre-commit
run: pip install pre-commit
- name: Run checks
run: pre-commit run -a -v
- name: Git status
if: always()
run: git status
- name: Full diff
if: always()
run: git diff