From fd7180c5c82d8efce283fdad32d93288c530bef7 Mon Sep 17 00:00:00 2001 From: louisabraham Date: Thu, 20 Mar 2025 19:57:17 +0100 Subject: [PATCH] ud testing --- .github/workflows/testing.yaml | 64 +++++++++++++++++----------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 259fae8..acf5e5f 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -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 }} -- 2.52.0