Skip to content

Commit a8dee58

Browse files
authored
Update GitHub Actions workflow for Ubuntu containers
Refactor workflow steps for clarity and consistency.
1 parent ad2126a commit a8dee58

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

.github/workflows/testing1087.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,63 +5,63 @@ on:
55

66
jobs:
77
ubuntu-20-first:
8-
name: Step 1 - Ubuntu 20.04 container
8+
name: Step 1 - Ubuntu 20.04 container
99
runs-on: self-hosted
10-
1110
container:
12-
image: ubuntu:20.04
13-
11+
image: ubuntu:20.04
1412
steps:
15-
- uses: actions/checkout@v6
16-
- name: Ensure Sudo is Installed
13+
- name: Install OS prereqs
1714
run: |
18-
if ! command -v sudo &> /dev/null; then
19-
echo "sudo could not be found. Installing..."
20-
apt-get update && apt-get install -y sudo
21-
fi
15+
apt-get update
16+
apt-get install -y --no-install-recommends \
17+
ca-certificates curl git sudo \
18+
libssl-dev libffi-dev zlib1g
19+
2220
- name: Fix pip cache permissions
23-
run: sudo chown -R $(whoami) /github/home
24-
21+
run: sudo chown -R $(whoami) /github/home
22+
23+
- uses: actions/checkout@v6
2524

2625
- name: Setup Python 3.11
2726
uses: gowridurgad/setup-python@testing-1087
28-
# uses: actions/setup-python@v6
2927
with:
3028
python-version: "3.11"
31-
- name: Upgrade pip
32-
run: |
33-
python -m pip install --upgrade pip
3429

35-
30+
- name: Show cache layout after job 1
31+
run: ls -la /__w/_tool/Python/
32+
33+
- name: Upgrade pip
34+
run: python -m pip install --upgrade pip
3635

3736
ubuntu-24-second:
3837
name: Step 2 - Ubuntu 24.04 container
39-
runs-on: self-hosted
4038
needs: ubuntu-20-first
41-
39+
runs-on: self-hosted
4240
container:
4341
image: ubuntu:24.04
44-
4542
steps:
46-
- uses: actions/checkout@v6
47-
48-
49-
- name: Ensure Sudo is Installed
43+
- name: Install OS prereqs
5044
run: |
51-
if ! command -v sudo &> /dev/null; then
52-
echo "sudo could not be found. Installing..."
53-
apt-get update && apt-get install -y sudo
54-
fi
45+
apt-get update
46+
apt-get install -y --no-install-recommends \
47+
ca-certificates curl git sudo \
48+
libssl-dev libffi-dev zlib1g
49+
5550
- name: Fix pip cache permissions
56-
run: sudo chown -R $(whoami) /github/home
57-
51+
run: sudo chown -R $(whoami) /github/home
52+
53+
- uses: actions/checkout@v6
54+
55+
- name: Show cache layout BEFORE job 2
56+
run: ls -la /__w/_tool/Python/
5857

5958
- name: Setup Python 3.11
6059
uses: gowridurgad/setup-python@testing-1087
61-
# uses: actions/setup-python@v6
6260
with:
6361
python-version: "3.11"
6462

63+
- name: Show cache layout AFTER job 2
64+
run: ls -la /__w/_tool/Python/
65+
6566
- name: Upgrade pip
66-
run: |
67-
python -m pip install --upgrade pip
67+
run: python -m pip install --upgrade pip

0 commit comments

Comments
 (0)