Skip to content

Commit 16a3135

Browse files
committed
ci: twister/tests: install pinned pip packages
Install packages from scripts/requirements-actions.txt. Signed-off-by: Anas Nashif <[email protected]>
1 parent a4f72e8 commit 16a3135

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/twister_tests.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,18 @@ jobs:
3737
steps:
3838
- name: checkout
3939
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40+
4041
- name: Set up Python ${{ matrix.python-version }}
4142
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
4243
with:
4344
python-version: ${{ matrix.python-version }}
44-
- name: cache-pip-linux
45-
if: startsWith(runner.os, 'Linux')
46-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
47-
with:
48-
path: ~/.cache/pip
49-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
50-
restore-keys: |
51-
${{ runner.os }}-pip-${{ matrix.python-version }}
52-
- name: install-packages
45+
cache: pip
46+
cache-dependency-path: scripts/requirements-actions.txt
47+
48+
- name: Install Python packages
5349
run: |
54-
pip3 install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt -r scripts/requirements-run-test.txt
50+
pip install -r scripts/requirements-actions.txt --require-hashes
51+
5552
- name: Run pytest for twisterlib
5653
env:
5754
ZEPHYR_BASE: ./

0 commit comments

Comments
 (0)