Skip to content

Commit 539e6f6

Browse files
CI: Ajout d'un artefact pour les résultats de Pylint
- Ajout d'un artefact qui contient les résultats de Pylint dans le workflow qualite
1 parent 61217dd commit 539e6f6

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/qualite.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,17 @@ jobs:
2626
2727
- name: Analyse avec Pylint (note >= 9.0 requise)
2828
run: |
29-
pylint app
30-
SCORE=$(pylint app | grep "Your code has been rated at" | awk '{print $7}' | cut -d"/" -f1)
29+
pylint app > tests-resultats-qualite.txt || true
30+
SCORE=$(grep "Your code has been rated at" tests-resultats-qualite.txt | awk '{print $7}' | cut -d"/" -f1)
3131
echo "Le score du code dans le dossier app est de $SCORE"
3232
SCORE_VALIDE=$(echo "$SCORE >= 9.0" | bc)
3333
if [ "$SCORE_VALIDE" -ne 1 ]; then
3434
echo "Erreur: La note du code est inférieur à 9."
3535
exit 1
36-
fi
36+
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

Comments
 (0)