Skip to content

Commit f5c06da

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 f5c06da

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,14 @@ jobs:
246246
sudo apt-get update -q
247247
sudo apt-get install -qqy dkms nasm python3-setuptools
248248
pip install distro pytest pytest-cov
249+
pip install --upgrade packaging
249250
pip install -r linux_requirements.txt
250-
sudo pip uninstall importlib_metadata
251-
sudo pip install importlib_metadata --force-reinstall
252-
sudo pip install -r linux_requirements.txt
251+
pip uninstall importlib_metadata
252+
pip install importlib_metadata --force-reinstall
253+
python -m pip list
253254
254255
- name: Build the driver with Python
255-
run: python3 setup.py build_ext -i
256+
run: python setup.py build_ext -i
256257

257258
- name: Build the driver with DKMS
258259
run: |
@@ -263,25 +264,26 @@ jobs:
263264
sudo dkms install -m chipsec -v "${CHIPSEC_MODULE_VER}" -k "${KERNEL_VER}"
264265
265266
- name: Run Python unit tests
266-
run: python3 -m unittest
267+
run: python -m unittest
267268

268269
- name: Get coverage requirement
269270
run: echo "CODE_COVERAGE_REQ=$(curl https://raw.githubusercontent.com/chipsec/chipsec/refs/heads/main-cfg/codeCoverageRequirement.cfg)" >> $GITHUB_ENV
270271

271272
- name: Run Python pytest
272273
run: |
273-
python -m pytest --cov --cov-report=term-missing --cov-fail-under="${{ env.CODE_COVERAGE_REQ }}"
274+
python -m pytest --cov . --cov-report=term-missing --cov-fail-under="${{ env.CODE_COVERAGE_REQ }}"
274275
275276
- name: Run xml cfg checker
276277
run: |
277-
python3 tests/cfg_checker.py
278+
python tests/cfg_checker.py
278279
279280
- name: pylint pilot for modules folder
280281
run: |
281282
pylint chipsec/modules
282283
283284
- name: Install chipsec
284-
run: sudo python3 setup.py install
285+
run: |
286+
sudo python setup.py install
285287
286288
- name: Run chipsec_main test
287289
run: |

0 commit comments

Comments
 (0)