ud testing
authorlouisabraham <louis.abraham@yahoo.fr>
Thu, 20 Mar 2025 18:57:17 +0000 (19:57 +0100)
committerlouisabraham <louis.abraham@yahoo.fr>
Thu, 20 Mar 2025 18:57:17 +0000 (19:57 +0100)
.github/workflows/testing.yaml

index 259fae8ad404fbd25da91f788f90f65e57d335ee..acf5e5fde9cf5ea9212fd00b97a0ceea1655c376 100644 (file)
@@ -7,36 +7,36 @@ jobs:
     name: Test
     runs-on: ubuntu-latest
     steps:
-    - name: Checkout
-      uses: actions/checkout@v2
-
-    - name: Set up Python
-      uses: actions/setup-python@v2
-      with:
-        python-version: '3.x'
-
-    - name: Install dependencies
-      run: |
-        python -m pip install --upgrade pip
-        pip install .
-
-    - name: Test with pytest
-      run: |
-        pip install pytest
-        pip install pytest-cov
-        python -m pytest tests --junit-xml pytest.xml
-
-    - name: Lint with flake8
-      run: |
-        pip install flake8
-        flake8 --ignore=E741,E501 .
-
-    - name: Upload Unit Test Results
-      if: always()
-      uses: actions/upload-artifact@v2
-      with:
-        name: Unit Test Results
-        path: pytest.xml
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Set up Python
+        uses: actions/setup-python@v5
+        with:
+          python-version: "3.x"
+
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install .
+
+      - name: Test with pytest
+        run: |
+          pip install pytest
+          pip install pytest-cov
+          python -m pytest tests --junit-xml pytest.xml
+
+      - name: Lint with flake8
+        run: |
+          pip install flake8
+          flake8 --ignore=E741,E501 .
+
+      - name: Upload Unit Test Results
+        if: always()
+        uses: actions/upload-artifact@v4
+        with:
+          name: Unit Test Results
+          path: pytest.xml
 
   publish-test-results:
     name: "Publish Unit Tests Results"
@@ -46,12 +46,12 @@ jobs:
 
     steps:
       - name: Download Artifacts
-        uses: actions/download-artifact@v2
+        uses: actions/download-artifact@v4
         with:
           path: artifacts
 
       - name: Publish Unit Test Results
-        uses: EnricoMi/publish-unit-test-result-action@v1.7
+        uses: EnricoMi/publish-unit-test-result-action@v2
         with:
           check_name: Unit Test Results
           github_token: ${{ secrets.GITHUB_TOKEN }}