-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (50 loc) · 1.5 KB
/
Copy pathtesting1087.yml
File metadata and controls
65 lines (50 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: testing-1087
on:
workflow_dispatch:
jobs:
ubuntu-20-first:
name: Step 1 - Ubuntu 20.04 container
runs-on: self-hosted
container:
image: ubuntu:20.04
steps:
- uses: actions/checkout@v6
- name: Ensure Sudo is Installed
run: |
if ! command -v sudo &> /dev/null; then
echo "sudo could not be found. Installing..."
apt-get update && apt-get install -y sudo
fi
- name: Fix pip cache permissions
run: sudo chown -R $(whoami) /github/home
- name: Setup Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
ubuntu-24-second:
name: Step 2 - Ubuntu 24.04 container
runs-on: ubuntu-latest
needs: ubuntu-20-first
container:
image: ubuntu:24.04
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6
- name: Ensure Sudo is Installed
run: |
if ! command -v sudo &> /dev/null; then
echo "sudo could not be found. Installing..."
apt-get update && apt-get install -y sudo
fi
- name: Fix pip cache permissions
run: sudo chown -R $(whoami) /github/home
- name: Setup Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Upgrade pip
run: |
python -m pip install --upgrade pip