Skip to content

Commit c5bc297

Browse files
committed
pin more
Signed-off-by: Anas Nashif <[email protected]>
1 parent c8385aa commit c5bc297

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/pylib_tests.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,17 @@ jobs:
3333
steps:
3434
- name: checkout
3535
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+
3637
- name: Set up Python ${{ matrix.python-version }}
3738
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
3839
with:
3940
python-version: ${{ matrix.python-version }}
40-
- name: cache-pip-linux
41-
if: startsWith(runner.os, 'Linux')
42-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
43-
with:
44-
path: ~/.cache/pip
45-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
46-
restore-keys: |
47-
${{ runner.os }}-pip-${{ matrix.python-version }}
41+
cache: pip
42+
cache-dependency-path: scripts/requirements-actions.txt
43+
4844
- name: install-packages
4945
run: |
50-
pip install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt
46+
pip install -r scripts/requirements-actions.txt --require-hashes
5147
- name: Run pytest for build_helpers
5248
env:
5349
ZEPHYR_BASE: ./

scripts/requirements-actions.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ python-magic; sys_platform != "win32"
2323
ruff==0.8.1
2424
sphinx-lint
2525
yamllint
26+
mock

scripts/requirements-actions.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,10 @@ mccabe==0.7.0 \
640640
--hash=sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325 \
641641
--hash=sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e
642642
# via pylint
643+
mock==5.2.0 \
644+
--hash=sha256:4e460e818629b4b173f32d08bf30d3af8123afbb8e04bb5707a1fd4799e503f0 \
645+
--hash=sha256:7ba87f72ca0e915175596069dbbcc7c75af7b5e9b9bc107ad6349ede0819982f
646+
# via -r requirements-actions.in
643647
packaging==24.2 \
644648
--hash=sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 \
645649
--hash=sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f

0 commit comments

Comments
 (0)