Skip to content

Commit b22ea25

Browse files
committed
generate hashes
Signed-off-by: Anas Nashif <[email protected]>
1 parent f8f42ed commit b22ea25

File tree

4 files changed

+969
-20
lines changed

4 files changed

+969
-20
lines changed

.github/workflows/backport_issue_check.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,22 @@ jobs:
2828
- name: Check out source code
2929
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3030

31-
- name: Install Python dependencies
32-
run: |
33-
pip install -U pygithub
31+
- name: Set up Python
32+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
33+
with:
34+
python-version: 3.12
35+
36+
- name: cache-pip
37+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
38+
with:
39+
path: ~/.cache/pip
40+
key: ${{ hashFiles('scripts/requirements-actions.txt') }}
41+
restore-keys: |
42+
${{ hashFiles('scripts/requirements-actions.txt') }}
43+
44+
- name: install-packages
45+
run: |
46+
pip install -r scripts/requirements-actions.txt
3447

3548
- name: Run backport issue checker
3649
env:

.github/workflows/footprint-tracking.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,30 @@ jobs:
6161
run: |
6262
sudo apt-get update
6363
sudo apt-get install -y python3-venv
64-
pip install -U gitpython
6564
6665
- name: checkout
6766
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6867
with:
6968
ref: ${{ github.event.pull_request.head.sha }}
7069
fetch-depth: 0
7170

71+
- name: Set up Python
72+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
73+
with:
74+
python-version: 3.12
75+
76+
- name: cache-pip
77+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
78+
with:
79+
path: ~/.cache/pip
80+
key: ${{ hashFiles('scripts/requirements-actions.txt') }}
81+
restore-keys: |
82+
${{ hashFiles('scripts/requirements-actions.txt') }}
83+
84+
- name: install-packages
85+
run: |
86+
pip install -r scripts/requirements-actions.txt
87+
7288
- name: Environment Setup
7389
run: |
7490
echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
@@ -97,7 +113,6 @@ jobs:
97113
run: |
98114
python3 -m venv .venv
99115
. .venv/bin/activate
100-
pip install awscli
101116
aws s3 sync --quiet footprint_data/ s3://testing.zephyrproject.org/footprint_data/
102117
103118
- name: Transform Footprint data to Twister JSON reports
@@ -116,7 +131,6 @@ jobs:
116131
ELASTICSEARCH_INDEX: ${{ vars.FOOTPRINT_TRACKING_INDEX }}
117132
run: |
118133
shopt -s globstar
119-
pip install -U elasticsearch
120134
run_date=`date --iso-8601=minutes`
121135
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
122136
--flatten footprint \

scripts/requirements-actions.in

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
pygithub
2+
junitparser
3+
junit2html
4+
gcovr
5+
xlsxwriter
6+
ijson
7+
unidiff
8+
sh
9+
pytest
10+
pyyaml
11+
tox
12+
awscli
13+
elasticsearch
14+
west>=0.14.0
15+
setuptools>=70.2.0

0 commit comments

Comments
 (0)