Skip to content

Commit 9c39ec8

Browse files
fix: e2e-tests python 3.12 installation (#1035)
* fix: python 3.12 setup * fix: v5
1 parent 1e7c070 commit 9c39ec8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/actions/tests/setup-python/action.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ runs:
1010
kubeconfig_base64: ${{ env.kubeconfig_base64 }}
1111
K8S_SERVER: ${{ env.K8S_SERVER }}
1212
K8S_SA_TOKEN: ${{ env.K8S_SA_TOKEN }}
13-
- name: Setup python and dependencies
13+
- name: Set up Python 3.12
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.12'
17+
cache: 'pip'
18+
- name: Setup python dependencies
1419
run: |
1520
cd e2e-tests
16-
sudo apt update
17-
sudo apt install -y software-properties-common
18-
sudo add-apt-repository ppa:deadsnakes/ppa
19-
sudo apt update
20-
sudo apt install -y python3.12 python3.12-venv python3.12-dev
21-
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
2221
curl -L --silent https://github.com/getsops/sops/releases/download/v3.7.3/sops_3.7.3_amd64.deb > sops.deb && sudo dpkg -i sops.deb && rm sops.deb
2322
python -m venv venv
2423
source venv/bin/activate

0 commit comments

Comments
 (0)