Skip to content

Commit

Permalink
Add pre-commit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Mar 5, 2024
1 parent 8e58452 commit e836019
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/check-markdown.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check code style
on:
push:
branches:
- main
- develop
pull_request:
branches:
- "*"

jobs:
formatting:
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

0 comments on commit e836019

Please sign in to comment.