|
1 | | -name: Test 1217 error - container |
| 1 | +name: Test Ensurepip Skipping - Platform Matrix - Container for ubuntu, macOS and Windows |
2 | 2 | on: |
3 | 3 | push: |
4 | 4 | branches: |
5 | 5 | - main |
6 | 6 | workflow_dispatch: |
7 | 7 |
|
8 | 8 | 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 |
16 | 40 | strategy: |
17 | 41 | 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 }} |
19 | 46 | steps: |
20 | 47 | - uses: actions/checkout@v4 |
21 | | - - name: Install lsb-release |
| 48 | + - name: Install prerequisites (lsb-release, curl, etc.) |
22 | 49 | run: | |
23 | 50 | 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 |
30 | 60 | - name: Setup Python |
31 | 61 | uses: actions/setup-python@v5 |
32 | 62 | with: |
33 | | - python-version: ${{ matrix.python }} |
| 63 | + python-version: ${{ matrix.python_version }} |
34 | 64 | cache: 'pip' |
35 | 65 | cache-dependency-path: 'requirements.txt' |
36 | 66 |
|
37 | | - test2: |
38 | | - name: Windows |
| 67 | + test-windows: |
39 | 68 | runs-on: windows-latest |
40 | 69 | strategy: |
41 | 70 | 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 }} |
59 | 75 | steps: |
60 | 76 | - 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 |
61 | 89 | - name: Setup Python |
62 | 90 | uses: actions/setup-python@v5 |
63 | 91 | with: |
64 | | - python-version: ${{ matrix.python }} |
| 92 | + python-version: ${{ matrix.python_version }} |
65 | 93 | cache: 'pip' |
66 | 94 | cache-dependency-path: 'requirements.txt' |
67 | | - # Add any macOS-specific steps here |
|
0 commit comments