Skip to content

Commit

Permalink
Add unit test code coverage minimum requirement
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Mitchell <[email protected]>
  • Loading branch information
npmitche committed Jan 9, 2025
1 parent 68d5415 commit 6ddbd34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 6ddbd34

Please sign in to comment.