@@ -34,38 +34,18 @@ jobs:
3434 steps :
3535 - name : checkout
3636 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
3738 - name : Set up Python ${{ matrix.python-version }}
3839 uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
3940 with :
4041 python-version : ${{ matrix.python-version }}
41- - name : cache-pip-linux
42- if : startsWith(runner.os, 'Linux')
43- uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
44- with :
45- path : ~/.cache/pip
46- key : ${{ runner.os }}-pip-${{ matrix.python-version }}
47- restore-keys : |
48- ${{ runner.os }}-pip-${{ matrix.python-version }}
49- - name : cache-pip-mac
50- if : startsWith(runner.os, 'macOS')
51- uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
52- with :
53- path : ~/Library/Caches/pip
54- # Trailing '-' was just to get a different cache name
55- key : ${{ runner.os }}-pip-${{ matrix.python-version }}-
56- restore-keys : |
57- ${{ runner.os }}-pip-${{ matrix.python-version }}-
58- - name : cache-pip-win
59- if : startsWith(runner.os, 'Windows')
60- uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
61- with :
62- path : ~\AppData\Local\pip\Cache
63- key : ${{ runner.os }}-pip-${{ matrix.python-version }}
64- restore-keys : |
65- ${{ runner.os }}-pip-${{ matrix.python-version }}
66- - name : install python dependencies
42+ cache : pip
43+ cache-dependency-path : scripts/requirements-actions.txt
44+
45+ - name : install-packages
6746 run : |
68- pip install pytest pyyaml tox
47+ pip install -r scripts/requirements-actions.txt --require-hashes
48+
6949 - name : run tox
7050 working-directory : scripts/dts/python-devicetree
7151 run : |
0 commit comments