Skip to content

Commit 1f64046

Browse files
authored
Fix Ubuntu container versions and update pip step
Updated Ubuntu container versions and modified steps for Python setup.
1 parent e1c9231 commit 1f64046

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

.github/workflows/testing1087.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: self-hosted
1010

1111
container:
12-
image: ubuntu:24.04
12+
image: ubuntu:20.04
1313

1414
steps:
1515
- uses: actions/checkout@v6
@@ -25,19 +25,19 @@ jobs:
2525
uses: actions/setup-python@v5
2626
with:
2727
python-version: "3.8"
28-
29-
- name: Verify Python
28+
- name: Upgrade pip
3029
run: |
31-
python --version
32-
python -c "import ssl; print(ssl.OPENSSL_VERSION)"
30+
python -m pip install --upgrade pip
31+
32+
3333

3434
ubuntu-24-second:
3535
name: Step 2 - Ubuntu 24.04 container
3636
runs-on: ubuntu-latest
3737
needs: ubuntu-20-first
3838

3939
container:
40-
image: ubuntu:20.04
40+
image: ubuntu:24.04
4141

4242
steps:
4343
- uses: actions/checkout@v6
@@ -50,16 +50,7 @@ jobs:
5050
apt-get update && apt-get install -y sudo
5151
fi
5252
- name: Fix pip cache permissions
53-
run: sudo chown -R $(whoami) /github/home
54-
# - name: Clear cache
55-
# run: |
56-
# rm -rf "${{ runner.tool_cache }}" "${{ runner.tool_cache }}.old"
57-
# mkdir -p "${{ runner.tool_cache }}"
58-
- name: Clear tool cache
59-
run: |
60-
rm -rf /__w/_tool/Python
61-
echo "Verify cleared:"
62-
ls -la /__w/_tool/
53+
run: sudo chown -R $(whoami) /github/home
6354

6455

6556
- name: Setup Python 3.8

0 commit comments

Comments
 (0)