Skip to content

Commit ca6c330

Browse files
authored
Update testing-rootuser.yml
1 parent 9d5fa9e commit ca6c330

1 file changed

Lines changed: 65 additions & 38 deletions

File tree

.github/workflows/testing-rootuser.yml

Lines changed: 65 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,94 @@
1-
name: Test 1217 error - container
1+
name: Test Ensurepip Skipping - Platform Matrix - Container for ubuntu, macOS and Windows
22
on:
33
push:
44
branches:
55
- main
66
workflow_dispatch:
77

88
jobs:
9-
test1:
10-
name: Ubuntu & Container
11-
runs-on: ubuntu-24.04
12-
container:
13-
image: python
14-
env:
15-
PIP_ROOT_USER_ACTION: ignore
9+
# test-containers:
10+
# runs-on: ubuntu-latest
11+
# strategy:
12+
# matrix:
13+
# container_image: [ ubuntu:24.04]
14+
# python_version: [3.11.6, 3.10.13, 3.9.18]
15+
# container:
16+
# image: ${{ matrix.container_image }}
17+
# steps:
18+
# - uses: actions/checkout@v4
19+
# - name: Install prerequisites (lsb-release, curl, etc.)
20+
# run: |
21+
# apt-get update
22+
# apt-get install -y lsb-release curl
23+
# - name: Fake /etc/lsb-release (if needed)
24+
# run: |
25+
# if [ ! -f /etc/lsb-release ]; then
26+
# echo "DISTRIB_RELEASE=${{ matrix.container_image == 'ubuntu:24.04' && '24.04' || '22.04' }}" | tee -a /etc/lsb-release
27+
# fi
28+
# - name: Change ownership of /github/home (if needed)
29+
# run: |
30+
# chown -R $(whoami) /github/home
31+
# - name: Setup Python
32+
# uses: actions/setup-python@v5
33+
# with:
34+
# python-version: ${{ matrix.python_version }}
35+
# cache: 'pip'
36+
# cache-dependency-path: 'requirements.txt'
37+
38+
test-macos:
39+
runs-on: macos-latest
1640
strategy:
1741
matrix:
18-
python: [3.11.6]
42+
# container_image: [ubuntu:22.04, ubuntu:24.04]
43+
python_version: [3.11.6, 3.10.13, 3.9.18]
44+
container:
45+
image: ${{ matrix.container_image }}
1946
steps:
2047
- uses: actions/checkout@v4
21-
- name: Install lsb-release
48+
- name: Install prerequisites (lsb-release, curl, etc.)
2249
run: |
2350
apt-get update
24-
apt-get install -y lsb-release
25-
- name: Create /etc/lsb-release
26-
run: |
27-
echo "DISTRIB_RELEASE=22.04" | tee -a /etc/lsb-release
28-
- name: Change ownership of /github/home
29-
run: chown -R $(whoami) /github/home
51+
apt-get install -y lsb-release curl
52+
# - name: Fake /etc/lsb-release (if needed)
53+
# run: |
54+
# if [ ! -f /etc/lsb-release ]; then
55+
# echo "DISTRIB_RELEASE=${{ matrix.container_image == 'ubuntu:24.04' && '24.04' || '22.04' }}" | tee -a /etc/lsb-release
56+
# fi
57+
# - name: Change ownership of /github/home (if needed)
58+
# run: |
59+
# chown -R $(whoami) /github/home
3060
- name: Setup Python
3161
uses: actions/setup-python@v5
3262
with:
33-
python-version: ${{ matrix.python }}
63+
python-version: ${{ matrix.python_version }}
3464
cache: 'pip'
3565
cache-dependency-path: 'requirements.txt'
3666

37-
test2:
38-
name: Windows
67+
test-windows:
3968
runs-on: windows-latest
4069
strategy:
4170
matrix:
42-
python: [3.11.6]
43-
steps:
44-
- uses: actions/checkout@v4
45-
- name: Setup Python
46-
uses: actions/setup-python@v5
47-
with:
48-
python-version: ${{ matrix.python }}
49-
cache: 'pip'
50-
cache-dependency-path: 'requirements.txt'
51-
# Add any Windows-specific steps here
52-
53-
test3:
54-
name: macOS
55-
runs-on: macos-latest
56-
strategy:
57-
matrix:
58-
python: [3.11.6]
71+
# container_image: [ubuntu:22.04, ubuntu:24.04]
72+
python_version: [3.11.6, 3.10.13, 3.9.18]
73+
container:
74+
image: ${{ matrix.container_image }}
5975
steps:
6076
- uses: actions/checkout@v4
77+
- name: Install prerequisites (lsb-release, curl, etc.)
78+
run: |
79+
apt-get update
80+
apt-get install -y lsb-release curl
81+
# - name: Fake /etc/lsb-release (if needed)
82+
# run: |
83+
# if [ ! -f /etc/lsb-release ]; then
84+
# echo "DISTRIB_RELEASE=${{ matrix.container_image == 'ubuntu:24.04' && '24.04' || '22.04' }}" | tee -a /etc/lsb-release
85+
# fi
86+
# - name: Change ownership of /github/home (if needed)
87+
# run: |
88+
# chown -R $(whoami) /github/home
6189
- name: Setup Python
6290
uses: actions/setup-python@v5
6391
with:
64-
python-version: ${{ matrix.python }}
92+
python-version: ${{ matrix.python_version }}
6593
cache: 'pip'
6694
cache-dependency-path: 'requirements.txt'
67-
# Add any macOS-specific steps here

0 commit comments

Comments
 (0)