Compare commits

..

2 commits

Author SHA1 Message Date
Benjamin Renard
3efaceb823 Fix tests.sh exit code
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2023-01-16 13:37:53 +01:00
Benjamin Renard
56f66dcd6e Run pytest only when at least one python file is changed 2023-01-16 13:37:17 +01:00
2 changed files with 2 additions and 1 deletions

View file

@ -7,8 +7,8 @@ repos:
name: pytest name: pytest
entry: python3 -m pytest tests entry: python3 -m pytest tests
language: system language: system
types: [python]
pass_filenames: false pass_filenames: false
always_run: true
- repo: local - repo: local
hooks: hooks:
- id: pylint - id: pylint

View file

@ -66,6 +66,7 @@ then
fi fi
# Run pre-commit # Run pre-commit
RES=0
echo "Run pre-commit..." echo "Run pre-commit..."
pre-commit run --all-files pre-commit run --all-files
[ $? -ne 0 ] && RES=1 [ $? -ne 0 ] && RES=1