We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a8654 commit 356675dCopy full SHA for 356675d
1 file changed
.github/workflows/qualite.yaml
@@ -26,7 +26,9 @@ jobs:
26
- name: Analyse avec Pylint (note >= 9.0 requise)
27
run: |
28
SCORE=$(pylint app | grep "Your code has been rated at" | awk '{print $7}' | cut -d"/" -f1)
29
- SCORE_NUM=$(echo "$SCORE >= 9.0" | bc)
30
- if [ "$SCORE_NUM" -ne 1 ]; then
+ echo "Le score du code dans le dossier app est de $SCORE"
+ SCORE_VALIDE=$(echo "$SCORE >= 9.0" | bc)
31
+ if [ "$SCORE_VALIDE" -ne 1 ]; then
32
+ echo "Erreur: La note du code est inférieur à 9."
33
exit 1
34
fi
0 commit comments