We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61217dd commit 539e6f6Copy full SHA for 539e6f6
1 file changed
.github/workflows/qualite.yaml
@@ -26,11 +26,17 @@ jobs:
26
27
- name: Analyse avec Pylint (note >= 9.0 requise)
28
run: |
29
- pylint app
30
- SCORE=$(pylint app | grep "Your code has been rated at" | awk '{print $7}' | cut -d"/" -f1)
+ pylint app > tests-resultats-qualite.txt || true
+ SCORE=$(grep "Your code has been rated at" tests-resultats-qualite.txt | awk '{print $7}' | cut -d"/" -f1)
31
echo "Le score du code dans le dossier app est de $SCORE"
32
SCORE_VALIDE=$(echo "$SCORE >= 9.0" | bc)
33
if [ "$SCORE_VALIDE" -ne 1 ]; then
34
echo "Erreur: La note du code est inférieur à 9."
35
exit 1
36
- fi
+ fi
37
+
38
+ - name: Upload du rapport Pylint
39
+ uses: actions/upload-artifact@v4
40
+ with:
41
+ name: rapport-pylint
42
+ path: tests-resultats-qualite.txt
0 commit comments