Skip to content

Remove python setup in github workflows #36642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/add_reviewer_bot_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ jobs:
with:
persist-credentials: false

- name: Setup python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: '.dda/version'

- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/assess_permissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ jobs:
tasks
persist-credentials: false

- name: Install python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"

- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/buildimages-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ jobs:
ref: ${{ inputs.branch }}
persist-credentials: false

- name: Setup Python and pip
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"

- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
# use the go version from the input, not from the .go-version file
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/bump_integrations_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ jobs:
fetch-depth: 0
persist-credentials: true

- name: Install Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"

- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/chase_for_qa_cards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
with:
ref: ${{ github.head_ref }}
persist-credentials: false
- name: Install python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/chase_release_managers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
with:
ref: ${{ github.head_ref }}
persist-credentials: false
- name: Install python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/code_review_complexity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Setup python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: '.dda/version'
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/collector-generate-and-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: 'pip'

- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/create_rc_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ jobs:
tasks
persist-credentials: false

- name: Install python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"

- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down Expand Up @@ -82,12 +76,6 @@ jobs:
with:
persist-credentials: true

- name: Install python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"

- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/create_release_schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ jobs:
with:
ref: ${{ github.head_ref }}
persist-credentials: false
- name: Install python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/cws-btfhub-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ jobs:
sparse-checkout: ${{ matrix.cone }}
persist-credentials: false

- name: Install python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: 'pip'
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down Expand Up @@ -104,11 +99,6 @@ jobs:
with:
ref: ${{ inputs.base_branch || 'main' }}

- name: Install python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: 'pip'
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/docs-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ jobs:
# Fetch all history for applying timestamps to every page
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version

- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/external-contributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ jobs:
ref: main
fetch-depth: 0
persist-credentials: false
- name: Setup python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: '.dda/version'
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/go_mod_tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: ".go-version"
- name: Install python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/label-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Setup python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: '.dda/version'
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand All @@ -49,12 +43,6 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- name: Setup python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: '.dda/version'
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down Expand Up @@ -110,12 +98,6 @@ jobs:
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
persist-credentials: false
- name: Setup Python3
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"
cache-dependency-path: '.dda/version'
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand All @@ -134,12 +116,6 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.head_ref }}
- name: Setup python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: '.dda/version'
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand All @@ -155,12 +131,6 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Setup python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: '.dda/version'
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/report-merged-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ jobs:
with:
persist-credentials: false

- name: Setup Python3
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version-file: .python-version
cache: "pip"
cache-dependency-path: '.dda/version'

- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/update_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: ".go-version"
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
cache: "pip"
- name: Install dda
uses: ./.github/actions/install-dda
with:
Expand Down