Skip to content

Commit 7f4fc3e

Browse files
V4 - Add workflow file for publishing releases to immutable action package (#1084)
* add publish immutable action * depricate ubuntu-20.04 * fix check failures * fix check failures on older versions * check failures fix for older versions * check failure fix * check failure fix * compatable version update * compatable version update for ubuntu-22.04 and windows * fix * update e2e tests format * fomat update * updated wording
1 parent 3605726 commit 7f4fc3e

File tree

5 files changed

+64
-17
lines changed

5 files changed

+64
-17
lines changed

.github/workflows/e2e-tests.yml

+28-1
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ jobs:
1616
runs-on: ${{ matrix.operating-system }}
1717
strategy:
1818
matrix:
19-
operating-system: [ubuntu-20.04, windows-latest]
19+
operating-system: [ubuntu-22.04, windows-latest]
20+
2021
steps:
2122
- name: Checkout
2223
uses: actions/checkout@v4
2324

2425
- name: Run with setup-python 3.6
26+
if: ${{ matrix.operating-system == 'windows-latest' }}
2527
uses: ./
2628
with:
2729
python-version: 3.6
2830
- name: Verify 3.6
31+
if: ${{ matrix.operating-system == 'windows-latest' }}
2932
run: python __tests__/verify-python.py 3.6
3033

3134
- name: Run with setup-python 3.7
@@ -43,26 +46,50 @@ jobs:
4346
run: python __tests__/verify-python.py 3.8
4447

4548
- name: Run with setup-python 3.7.5
49+
if: ${{ matrix.operating-system == 'windows-latest' }}
4650
uses: ./
4751
with:
4852
python-version: 3.7.5
4953
- name: Verify 3.7.5
54+
if: ${{ matrix.operating-system == 'windows-latest' }}
5055
run: python __tests__/verify-python.py 3.7.5
5156

5257
- name: Run with setup-python 3.6.7
58+
if: ${{ matrix.operating-system == 'windows-latest' }}
5359
uses: ./
5460
with:
5561
python-version: 3.6.7
5662
- name: Verify 3.6.7
63+
if: ${{ matrix.operating-system == 'windows-latest' }}
5764
run: python __tests__/verify-python.py 3.6.7
5865

5966
- name: Run with setup-python 3.8.1
67+
if: ${{ matrix.operating-system == 'windows-latest' }}
6068
uses: ./
6169
with:
6270
python-version: 3.8.1
6371
- name: Verify 3.8.1
72+
if: ${{ matrix.operating-system == 'windows-latest' }}
6473
run: python __tests__/verify-python.py 3.8.1
6574

75+
- name: Run with setup-python 3.7.13
76+
if: ${{ matrix.operating-system == 'ubuntu-22.04' }}
77+
uses: ./
78+
with:
79+
python-version: 3.7.13
80+
- name: Verify 3.7.13
81+
if: ${{ matrix.operating-system == 'ubuntu-22.04' }}
82+
run: python __tests__/verify-python.py 3.7.13
83+
84+
- name: Run with setup-python 3.8.12
85+
if: ${{ matrix.operating-system == 'ubuntu-22.04' }}
86+
uses: ./
87+
with:
88+
python-version: 3.8.12
89+
- name: Verify 3.8.12
90+
if: ${{ matrix.operating-system == 'ubuntu-22.04' }}
91+
run: python __tests__/verify-python.py 3.8.12
92+
6693
- name: Run with setup-python 3.10
6794
id: cp310
6895
uses: ./
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Publish Immutable Action Version'
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
13+
packages: write
14+
15+
steps:
16+
- name: Checking out
17+
uses: actions/checkout@v4
18+
- name: Publish
19+
id: publish
20+
uses: actions/publish-immutable-action@v0.0.4

.github/workflows/test-graalpy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [macos-latest, ubuntu-20.04, ubuntu-latest]
20+
os: [macos-latest, ubuntu-22.04, ubuntu-latest]
2121
graalpy:
2222
- 'graalpy-23.0'
2323
- 'graalpy-22.3'
@@ -62,7 +62,7 @@ jobs:
6262
strategy:
6363
fail-fast: false
6464
matrix:
65-
os: [macos-latest, ubuntu-20.04, ubuntu-latest]
65+
os: [macos-latest, ubuntu-22.04, ubuntu-latest]
6666
graalpy: ['graalpy23.0', 'graalpy22.3']
6767

6868
steps:

.github/workflows/test-pypy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-latest]
22+
os: [macos-13, windows-latest, ubuntu-22.04, ubuntu-latest]
2323
pypy:
2424
- 'pypy-2.7'
2525
- 'pypy-3.7'
@@ -76,7 +76,7 @@ jobs:
7676
strategy:
7777
fail-fast: false
7878
matrix:
79-
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-latest]
79+
os: [macos-13, windows-latest, ubuntu-22.04, ubuntu-latest]
8080
pypy: ['pypy2.7', 'pypy3.7', 'pypy3.8', 'pypy3.9-nightly']
8181

8282
steps:

.github/workflows/test-python.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
23+
os: [macos-13, windows-latest, ubuntu-22.04]
2424
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13]
2525
exclude:
2626
- os: ubuntu-22.04
@@ -62,7 +62,7 @@ jobs:
6262
strategy:
6363
fail-fast: false
6464
matrix:
65-
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
65+
os: [macos-13, windows-latest, ubuntu-22.04]
6666
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13]
6767
exclude:
6868
- os: ubuntu-22.04
@@ -107,7 +107,7 @@ jobs:
107107
strategy:
108108
fail-fast: false
109109
matrix:
110-
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
110+
os: [macos-13, windows-latest, ubuntu-22.04]
111111
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13]
112112
exclude:
113113
- os: ubuntu-22.04
@@ -150,7 +150,7 @@ jobs:
150150
strategy:
151151
fail-fast: false
152152
matrix:
153-
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
153+
os: [macos-13, windows-latest, ubuntu-22.04]
154154
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13, '==3.10.10']
155155
exclude:
156156
- os: ubuntu-22.04
@@ -198,7 +198,7 @@ jobs:
198198
strategy:
199199
fail-fast: false
200200
matrix:
201-
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
201+
os: [macos-13, windows-latest, ubuntu-22.04]
202202
python: [3.6.7, 3.7.5, 3.8.15, 3.9.13]
203203
exclude:
204204
- os: ubuntu-22.04
@@ -241,21 +241,21 @@ jobs:
241241
run: python -c 'import math; print(math.factorial(5))'
242242

243243
setup-pre-release-version-from-manifest:
244-
name: Setup 3.9.0-beta.4 ${{ matrix.os }}
244+
name: Setup 3.11.0-beta.4 ${{ matrix.os }}
245245
runs-on: ${{ matrix.os }}
246246
strategy:
247247
fail-fast: false
248248
matrix:
249-
os: [macos-13, windows-latest, ubuntu-20.04]
249+
os: [macos-13, windows-latest, ubuntu-22.04]
250250
steps:
251251
- name: Checkout
252252
uses: actions/checkout@v4
253253

254-
- name: setup-python 3.9.0-beta.4
254+
- name: setup-python 3.11.0-beta.4
255255
id: setup-python
256256
uses: ./
257257
with:
258-
python-version: '3.9.0-beta.4'
258+
python-version: '3.11.0-beta.4'
259259

260260
- name: Check python-path
261261
run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}'
@@ -264,8 +264,8 @@ jobs:
264264
- name: Validate version
265265
run: |
266266
$pythonVersion = (python --version)
267-
if ("Python 3.9.0b4" -ne "$pythonVersion"){
268-
Write-Host "The current version is $pythonVersion; expected version is 3.9.0b4"
267+
if ("Python 3.11.0b4" -ne "$pythonVersion"){
268+
Write-Host "The current version is $pythonVersion; expected version is 3.11.0b4"
269269
exit 1
270270
}
271271
$pythonVersion
@@ -337,7 +337,7 @@ jobs:
337337
strategy:
338338
fail-fast: false
339339
matrix:
340-
os: [macos-13, windows-latest, ubuntu-20.04, ubuntu-22.04]
340+
os: [macos-13, windows-latest, ubuntu-22.04]
341341
python: ['3.7', '3.8', '3.9', '3.10']
342342
steps:
343343
- name: Checkout

0 commit comments

Comments
 (0)