ci: general pip cleanup
Cleanup all pip commands in the various workflow - drop the install/upgrade for setuptool pip and wheel, seems like this was introduced few years back to work around some old bug and it's not needed anymore - use pip instead of pip3, that's probably been equivalent for quite a long time in the CI image Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
6eff676448
commit
93cb20befd
3
.github/workflows/assigner.yml
vendored
3
.github/workflows/assigner.yml
vendored
@ -24,8 +24,7 @@ jobs:
|
||||
steps:
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
sudo pip3 install -U setuptools wheel pip
|
||||
pip3 install -U PyGithub>=1.55 west
|
||||
pip install -U PyGithub>=1.55 west
|
||||
|
||||
- name: Check out source code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
3
.github/workflows/backport_issue_check.yml
vendored
3
.github/workflows/backport_issue_check.yml
vendored
@ -25,8 +25,7 @@ jobs:
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
sudo pip3 install -U setuptools wheel pip
|
||||
pip3 install -U pygithub
|
||||
pip install -U pygithub
|
||||
|
||||
- name: Run backport issue checker
|
||||
env:
|
||||
|
||||
2
.github/workflows/bsim-tests.yaml
vendored
2
.github/workflows/bsim-tests.yaml
vendored
@ -170,7 +170,7 @@ jobs:
|
||||
|
||||
- name: Merge Test Results
|
||||
run: |
|
||||
pip3 install junitparser junit2html
|
||||
pip install junitparser junit2html
|
||||
junitparser merge --glob "./bsim_*/*bsim_results.*.xml" "./twister-out/twister.xml" junit.xml
|
||||
junit2html junit.xml junit.html
|
||||
|
||||
|
||||
3
.github/workflows/bug_snapshot.yaml
vendored
3
.github/workflows/bug_snapshot.yaml
vendored
@ -25,8 +25,7 @@ jobs:
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
sudo pip3 install -U setuptools wheel pip
|
||||
pip3 install -U pygithub
|
||||
pip install -U pygithub
|
||||
|
||||
- name: Snapshot bugs
|
||||
env:
|
||||
|
||||
2
.github/workflows/clang.yaml
vendored
2
.github/workflows/clang.yaml
vendored
@ -144,7 +144,7 @@ jobs:
|
||||
path: artifacts
|
||||
- name: Merge Test Results
|
||||
run: |
|
||||
pip3 install junitparser junit2html
|
||||
pip install junitparser junit2html
|
||||
junitparser merge artifacts/*/twister.xml junit.xml
|
||||
junit2html junit.xml junit-clang.html
|
||||
|
||||
|
||||
4
.github/workflows/codecov.yaml
vendored
4
.github/workflows/codecov.yaml
vendored
@ -101,7 +101,7 @@ jobs:
|
||||
export ZEPHYR_BASE=${PWD}
|
||||
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
|
||||
mkdir -p coverage/reports
|
||||
pip3 install gcovr==6.0
|
||||
pip install gcovr==6.0
|
||||
./scripts/twister -E ${{matrix.normalized}}-testplan.json
|
||||
ls -la
|
||||
./scripts/twister \
|
||||
@ -182,7 +182,7 @@ jobs:
|
||||
- name: Merge coverage files
|
||||
run: |
|
||||
pushd ./coverage/reports
|
||||
pip3 install gcovr==6.0
|
||||
pip install gcovr==6.0
|
||||
gcovr ${{ steps.get-coverage-files.outputs.mergefiles }} --merge-mode-functions=separate --json merged.json
|
||||
gcovr ${{ steps.get-coverage-files.outputs.mergefiles }} --merge-mode-functions=separate --cobertura merged.xml
|
||||
popd
|
||||
|
||||
5
.github/workflows/coding_guidelines.yml
vendored
5
.github/workflows/coding_guidelines.yml
vendored
@ -21,9 +21,8 @@ jobs:
|
||||
|
||||
- name: Install python dependencies
|
||||
run: |
|
||||
pip3 install unidiff
|
||||
pip3 install wheel
|
||||
pip3 install sh
|
||||
pip install unidiff
|
||||
pip install sh
|
||||
|
||||
- name: Install Packages
|
||||
run: |
|
||||
|
||||
6
.github/workflows/compliance.yml
vendored
6
.github/workflows/compliance.yml
vendored
@ -53,10 +53,8 @@ jobs:
|
||||
|
||||
- name: Install python dependencies
|
||||
run: |
|
||||
pip3 install setuptools
|
||||
pip3 install wheel
|
||||
pip3 install -r scripts/requirements-compliance.txt
|
||||
pip3 install west
|
||||
pip install -r scripts/requirements-compliance.txt
|
||||
pip install west
|
||||
|
||||
- name: west setup
|
||||
run: |
|
||||
|
||||
2
.github/workflows/daily_test_version.yml
vendored
2
.github/workflows/daily_test_version.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
|
||||
- name: install-pip
|
||||
run: |
|
||||
pip3 install gitpython
|
||||
pip install gitpython
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
3
.github/workflows/devicetree_checks.yml
vendored
3
.github/workflows/devicetree_checks.yml
vendored
@ -62,8 +62,7 @@ jobs:
|
||||
${{ runner.os }}-pip-${{ matrix.python-version }}
|
||||
- name: install python dependencies
|
||||
run: |
|
||||
pip3 install wheel
|
||||
pip3 install pytest pyyaml tox
|
||||
pip install pytest pyyaml tox
|
||||
- name: run tox
|
||||
working-directory: scripts/dts/python-devicetree
|
||||
run: |
|
||||
|
||||
16
.github/workflows/doc-build.yml
vendored
16
.github/workflows/doc-build.yml
vendored
@ -108,11 +108,10 @@ jobs:
|
||||
|
||||
- name: install-pip
|
||||
run: |
|
||||
sudo pip3 install -U setuptools wheel pip
|
||||
pip3 install -r doc/requirements.txt
|
||||
pip3 install west==${WEST_VERSION}
|
||||
pip3 install cmake==${CMAKE_VERSION}
|
||||
pip3 install coverxygen
|
||||
pip install -r doc/requirements.txt
|
||||
pip install west==${WEST_VERSION}
|
||||
pip install cmake==${CMAKE_VERSION}
|
||||
pip install coverxygen
|
||||
|
||||
- name: west setup
|
||||
run: |
|
||||
@ -223,10 +222,9 @@ jobs:
|
||||
|
||||
- name: install-pip
|
||||
run: |
|
||||
pip3 install -U setuptools wheel pip
|
||||
pip3 install -r doc/requirements.txt
|
||||
pip3 install west==${WEST_VERSION}
|
||||
pip3 install cmake==${CMAKE_VERSION}
|
||||
pip install -r doc/requirements.txt
|
||||
pip install west==${WEST_VERSION}
|
||||
pip install cmake==${CMAKE_VERSION}
|
||||
|
||||
- name: west setup
|
||||
run: |
|
||||
|
||||
6
.github/workflows/footprint-tracking.yml
vendored
6
.github/workflows/footprint-tracking.yml
vendored
@ -58,7 +58,7 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3-venv
|
||||
sudo pip3 install -U setuptools wheel pip gitpython
|
||||
pip install -U gitpython
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -94,7 +94,7 @@ jobs:
|
||||
run: |
|
||||
python3 -m venv .venv
|
||||
. .venv/bin/activate
|
||||
pip3 install awscli
|
||||
pip install awscli
|
||||
aws s3 sync --quiet footprint_data/ s3://testing.zephyrproject.org/footprint_data/
|
||||
|
||||
- name: Transform Footprint data to Twister JSON reports
|
||||
@ -113,7 +113,7 @@ jobs:
|
||||
ELASTICSEARCH_INDEX: ${{ vars.FOOTPRINT_TRACKING_INDEX }}
|
||||
run: |
|
||||
shopt -s globstar
|
||||
pip3 install -U elasticsearch
|
||||
pip install -U elasticsearch
|
||||
run_date=`date --iso-8601=minutes`
|
||||
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
|
||||
--flatten footprint \
|
||||
|
||||
2
.github/workflows/manifest.yml
vendored
2
.github/workflows/manifest.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
BASE_REF: ${{ github.base_ref }}
|
||||
working-directory: zephyrproject/zephyr
|
||||
run: |
|
||||
pip3 install west
|
||||
pip install west
|
||||
git config --global user.email "you@example.com"
|
||||
git config --global user.name "Your Name"
|
||||
west init -l . || true
|
||||
|
||||
2
.github/workflows/pylib_tests.yml
vendored
2
.github/workflows/pylib_tests.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
||||
${{ runner.os }}-pip-${{ matrix.python-version }}
|
||||
- name: install-packages
|
||||
run: |
|
||||
pip3 install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt
|
||||
pip install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt
|
||||
- name: Run pytest for build_helpers
|
||||
env:
|
||||
ZEPHYR_BASE: ./
|
||||
|
||||
2
.github/workflows/scripts_tests.yml
vendored
2
.github/workflows/scripts_tests.yml
vendored
@ -64,7 +64,7 @@ jobs:
|
||||
|
||||
- name: install-packages
|
||||
run: |
|
||||
pip3 install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt
|
||||
pip install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt
|
||||
|
||||
- name: Run pytest
|
||||
env:
|
||||
|
||||
2
.github/workflows/stats_merged_prs.yml
vendored
2
.github/workflows/stats_merged_prs.yml
vendored
@ -20,5 +20,5 @@ jobs:
|
||||
ELASTICSEARCH_SERVER: "https://elasticsearch.zephyrproject.io:443"
|
||||
PR_STAT_ES_INDEX: ${{ vars.PR_STAT_ES_INDEX }}
|
||||
run: |
|
||||
pip3 install pygithub elasticsearch
|
||||
pip install pygithub elasticsearch
|
||||
python3 ./scripts/ci/stats/merged_prs.py --pull-request ${{ github.event.pull_request.number }} --repo ${{ github.repository }}
|
||||
|
||||
2
.github/workflows/twister-publish.yaml
vendored
2
.github/workflows/twister-publish.yaml
vendored
@ -37,7 +37,7 @@ jobs:
|
||||
- name: Upload to elasticsearch
|
||||
if: steps.download-artifacts.outputs.found_artifact == 'true'
|
||||
run: |
|
||||
pip3 install elasticsearch
|
||||
pip install elasticsearch
|
||||
# set run date on upload to get consistent and unified data across the matrix.
|
||||
run_date=`date --iso-8601=minutes`
|
||||
if [ "${{github.event.workflow_run.event}}" = "push" ]; then
|
||||
|
||||
4
.github/workflows/twister.yaml
vendored
4
.github/workflows/twister.yaml
vendored
@ -197,7 +197,7 @@ jobs:
|
||||
timestamp="$(date)"
|
||||
version="$(git describe --abbrev=12 --always)"
|
||||
echo -e "# Generated at $timestamp ($version)\n" > $FREEZE_FILE
|
||||
pip3 freeze | tee -a $FREEZE_FILE
|
||||
pip freeze | tee -a $FREEZE_FILE
|
||||
|
||||
- if: matrix.subset == 1 && github.event_name == 'push'
|
||||
name: Upload the list of Python packages
|
||||
@ -223,7 +223,7 @@ jobs:
|
||||
|
||||
- name: Merge Test Results
|
||||
run: |
|
||||
pip3 install junitparser junit2html
|
||||
pip install junitparser junit2html
|
||||
junitparser merge artifacts/*/*/twister.xml junit.xml
|
||||
junit2html junit.xml junit.html
|
||||
|
||||
|
||||
2
.github/workflows/twister_tests.yml
vendored
2
.github/workflows/twister_tests.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
||||
${{ runner.os }}-pip-${{ matrix.python-version }}
|
||||
- name: install-packages
|
||||
run: |
|
||||
pip3 install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt -r scripts/requirements-run-test.txt
|
||||
pip install -r scripts/requirements-base.txt -r scripts/requirements-build-test.txt -r scripts/requirements-run-test.txt
|
||||
- name: Run pytest for twisterlib
|
||||
env:
|
||||
ZEPHYR_BASE: ./
|
||||
|
||||
3
.github/workflows/west_cmds.yml
vendored
3
.github/workflows/west_cmds.yml
vendored
@ -65,8 +65,7 @@ jobs:
|
||||
${{ runner.os }}-pip-${{ matrix.python-version }}
|
||||
- name: install pytest
|
||||
run: |
|
||||
pip3 install wheel
|
||||
pip3 install pytest west pyelftools canopen natsort progress mypy intelhex psutil ply pyserial anytree
|
||||
pip install pytest west pyelftools canopen natsort progress mypy intelhex psutil ply pyserial anytree
|
||||
- name: run pytest-win
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user