Skip to content

Commit e93cbd3

Browse files
committed
Add arg to pytest to check all files, fix dependency issue
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
1 parent be74600 commit e93cbd3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,13 @@ jobs:
245245
run: |
246246
sudo apt-get update -q
247247
sudo apt-get install -qqy dkms nasm python3-setuptools
248-
pip install distro pytest pytest-cov
248+
sudo pip install distro pytest pytest-cov
249+
pip install --upgrade packaging
249250
pip install -r linux_requirements.txt
250251
sudo pip uninstall importlib_metadata
251252
sudo pip install importlib_metadata --force-reinstall
252253
sudo pip install -r linux_requirements.txt
254+
python -m pip list
253255
254256
- name: Build the driver with Python
255257
run: python3 setup.py build_ext -i
@@ -270,7 +272,7 @@ jobs:
270272

271273
- name: Run Python pytest
272274
run: |
273-
python -m pytest --cov --cov-report=term-missing --cov-fail-under="${{ env.CODE_COVERAGE_REQ }}"
275+
python -m pytest --cov . --cov-report=term-missing --cov-fail-under="${{ env.CODE_COVERAGE_REQ }}"
274276
275277
- name: Run xml cfg checker
276278
run: |
@@ -281,7 +283,9 @@ jobs:
281283
pylint chipsec/modules
282284
283285
- name: Install chipsec
284-
run: sudo python3 setup.py install
286+
run: |
287+
python -m pip list
288+
sudo python3 setup.py install
285289
286290
- name: Run chipsec_main test
287291
run: |

0 commit comments

Comments
 (0)