Skip to content

Commit 356675d

Browse files
CI: Amélioration workflow qualite
- Ecriture de la note pour débogger ce workflow
1 parent 42a8654 commit 356675d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/qualite.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
- name: Analyse avec Pylint (note >= 9.0 requise)
2727
run: |
2828
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
29+
echo "Le score du code dans le dossier app est de $SCORE"
30+
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."
3133
exit 1
3234
fi

0 commit comments

Comments
 (0)