From 6ddbd34389eb7ad62e9f8592e49595fa79873ca4 Mon Sep 17 00:00:00 2001 From: Nathaniel Mitchell Date: Thu, 9 Jan 2025 10:07:43 -0800 Subject: [PATCH] Add unit test code coverage minimum requirement Signed-off-by: Nathaniel Mitchell --- .github/workflows/tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 23b6f93531..acd8296dcd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -131,7 +131,7 @@ jobs: modinfo "${MODULE}" - name: Upload Linux driver from ${{ steps.modinfo.outputs.module_path }} - uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 + uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: name: chipsec-${{ steps.versions.outputs.chipsec }}.${{ matrix.distro.name }}-${{ matrix.distro.tag }}${{ matrix.distro.variant }}-${{ steps.versions.outputs.kernel }}.${{ steps.versions.outputs.uname_m }} path: ${{ steps.modinfo.outputs.module_path }} @@ -180,14 +180,14 @@ jobs: run: python setup.py build_ext -i - name: Upload Windows Main driver - uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 + uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: name: chipsec_drivers_windows_x64_py${{ matrix.versions.python }}_win${{ matrix.versions.window }} path: drivers/windows/chipsec/x64 if-no-files-found: error - name: Upload Windows PCI Filter driver - uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 + uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: name: pcifilter_drivers_windows_x64_py${{ matrix.versions.python }}_win${{ matrix.versions.window }} path: drivers/windows/pcifilter/x64 @@ -246,7 +246,7 @@ jobs: run: | sudo apt-get update -q sudo apt-get install -qqy dkms nasm python3-setuptools - pip install distro pytest + pip install distro pytest pytest-cov pip install -r linux_requirements.txt sudo pip uninstall importlib_metadata sudo pip install importlib_metadata --force-reinstall @@ -267,7 +267,7 @@ jobs: run: python3 -m unittest - name: Run Python pytest - run: python -m pytest tests + run: python -m pytest --cov-fail-under=${{ vars.COVERAGE_MINIMUM_REQUIREMENT}} tests - name: Run xml cfg checker run: |