Skip to content

Commit

Permalink
ci(hsm_tests): Run tests in a virtual env
Browse files Browse the repository at this point in the history
  • Loading branch information
radimkarnis committed Apr 29, 2024
1 parent 9f46568 commit 88f6186
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ host_tests_hsm:
PYTEST_ADDOPTS: "-sv --junitxml=test/report.xml --color=yes"
before_script:
- apt-get update
- apt-get install -y python3 python3-pip softhsm2
- apt-get install -y python3 python3-pip python3-venv softhsm2
- ./ci/setup_softhsm2.sh || exit 1
- python3 -m venv esptoolenv
- source esptoolenv/bin/activate
- pip3 install -e .[dev,hsm] --prefer-binary
script:
- coverage run --parallel-mode -m pytest ${CI_PROJECT_DIR}/test/test_espsecure_hsm.py
Expand Down

0 comments on commit 88f6186

Please sign in to comment.