@@ -246,13 +246,18 @@ 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+
254+ - name : Show Python version
255+ run : |
256+ python -m pip list
257+ python --version
253258
254259 - name : Build the driver with Python
255- run : python3 setup.py build_ext -i
260+ run : python setup.py build_ext -i
256261
257262 - name : Build the driver with DKMS
258263 run : |
@@ -263,25 +268,26 @@ jobs:
263268 sudo dkms install -m chipsec -v "${CHIPSEC_MODULE_VER}" -k "${KERNEL_VER}"
264269
265270 - name : Run Python unit tests
266- run : python3 -m unittest
271+ run : python -m unittest
267272
268273 - name : Get coverage requirement
269274 run : echo "CODE_COVERAGE_REQ=$(curl https://raw.githubusercontent.com/chipsec/chipsec/refs/heads/main-cfg/codeCoverageRequirement.cfg)" >> $GITHUB_ENV
270275
271276 - name : Run Python pytest
272277 run : |
273- python -m pytest --cov --cov-report=term-missing --cov-fail-under="${{ env.CODE_COVERAGE_REQ }}"
278+ python -m pytest --cov . --cov-report=term-missing --cov-fail-under="${{ env.CODE_COVERAGE_REQ }}"
274279
275280 - name : Run xml cfg checker
276281 run : |
277- python3 tests/cfg_checker.py
282+ python tests/cfg_checker.py
278283
279284 - name : pylint pilot for modules folder
280285 run : |
281286 pylint chipsec/modules
282287
283288 - name : Install chipsec
284- run : sudo python3 setup.py install
289+ run : |
290+ python setup.py install
285291
286292 - name : Run chipsec_main test
287293 run : |
0 commit comments