From 88c837702b3478edf2931fe9e639a6c6d6de1b48 Mon Sep 17 00:00:00 2001 From: AnthonyGuillauma Date: Sun, 6 Apr 2025 14:45:38 +0200 Subject: [PATCH 1/2] =?UTF-8?q?CI:=20Am=C3=A9lioration=20des=20importation?= =?UTF-8?q?s=20dans=20les=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Amélioration des importations dans les workflows en les faisant utiliser le fichier requirements.txt --- .github/workflows/documentation.yaml | 6 +----- .github/workflows/qualite.yaml | 5 +---- .github/workflows/tests.yaml | 7 +------ 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index abfeb05..25cc4f3 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -30,11 +30,7 @@ jobs: - name: Installation des dépendances run: | python -m pip install --upgrade pip - pip install sphinx - pip install sphinx_rtd_theme --break-system-packages - pip install colorama - pip install altair - pip install pandas + pip install -r requirements.txt # Étape 4 : Générer la documentation - name: Construction de la documentation (avec Sphinx) diff --git a/.github/workflows/qualite.yaml b/.github/workflows/qualite.yaml index b7ef122..906d3e3 100644 --- a/.github/workflows/qualite.yaml +++ b/.github/workflows/qualite.yaml @@ -25,10 +25,7 @@ jobs: - name: Installation des dépendances run: | python -m pip install --upgrade pip - pip install pylint - pip install colorama - pip install altair - pip install pandas + pip install -r requirements.txt # Étape 4 : Lancement de l'analyse - name: Analyse avec Pylint (note >= 9.0 requise) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d1c3aea..7b6394e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -32,12 +32,7 @@ jobs: - name: Installer les dépendances run: | python -m pip install --upgrade pip - pip install colorama - pip install altair - pip install pandas - pip install pytest - pip install pytest-cov - pip install pytest-mock + pip install -r requirements.txt # Étape 4 : Lancer les tests unitaires - name: Lancer les tests unitaires From 4f575501d7d8d3e7d3ed797b1d79168134a0a4ff Mon Sep 17 00:00:00 2001 From: AnthonyGuillauma Date: Sun, 6 Apr 2025 14:50:48 +0200 Subject: [PATCH 2/2] =?UTF-8?q?CI:=20Ajout=20des=20d=C3=A9pendances=20manu?= =?UTF-8?q?ellement=20sur=20le=20workflow=20des=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ajout des dépendances manuellement car ce workflow utilise plusieurs versions de Python qui ne prennent pas les dernières versions des bibliothèques --- .github/workflows/tests.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7b6394e..d1c3aea 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -32,7 +32,12 @@ jobs: - name: Installer les dépendances run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install colorama + pip install altair + pip install pandas + pip install pytest + pip install pytest-cov + pip install pytest-mock # Étape 4 : Lancer les tests unitaires - name: Lancer les tests unitaires