@@ -37,42 +37,23 @@ 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@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
4243 with :
4344 python-version : ${{ matrix.python-version }}
44- - name : cache-pip-linux
45- if : startsWith(runner.os, 'Linux')
46- uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
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 : cache-pip-mac
53- if : startsWith(runner.os, 'macOS')
54- uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
55- with :
56- path : ~/Library/Caches/pip
57- # Trailing '-' was just to get a different cache name
58- key : ${{ runner.os }}-pip-${{ matrix.python-version }}-
59- restore-keys : |
60- ${{ runner.os }}-pip-${{ matrix.python-version }}-
61- - name : cache-pip-win
62- if : startsWith(runner.os, 'Windows')
63- uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
64- with :
65- path : ~\AppData\Local\pip\Cache
66- key : ${{ runner.os }}-pip-${{ matrix.python-version }}
67- restore-keys : |
68- ${{ runner.os }}-pip-${{ matrix.python-version }}
69- - name : install pytest
45+ cache : pip
46+ cache-dependency-path : scripts/requirements-actions.txt
47+
48+ - name : install-packages
7049 run : |
71- pip install pytest west pyelftools canopen natsort progress mypy intelhex psutil ply pyserial anytree junitparser
50+ pip install -r scripts/requirements-actions.txt --require-hashes
51+
7252 - name : run pytest-win
7353 if : runner.os == 'Windows'
7454 run : |
7555 python ./scripts/west_commands/run_tests.py
56+
7657 - name : run pytest-mac-linux
7758 if : runner.os != 'Windows'
7859 run : |
0 commit comments