@@ -12,15 +12,15 @@ jobs:
12
12
build :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v4
15
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
16
16
17
17
- name : Setup Python
18
- uses : actions/setup-python@v4
18
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
19
19
with :
20
20
python-version : " 3.12"
21
21
22
22
- name : Set up Node.js
23
- uses : actions/setup-node@v4
23
+ uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
24
24
with :
25
25
node-version : " 20"
26
26
@@ -30,23 +30,24 @@ jobs:
30
30
python -m build .
31
31
32
32
- name : Store the distribution packages
33
- uses : actions/upload-artifact@v3
33
+ uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
34
34
with :
35
35
name : python-package-distributions
36
36
path : dist/
37
+ if-no-files-found : error
37
38
38
39
test :
39
40
runs-on : ubuntu-latest
40
41
steps :
41
- - uses : actions/checkout@v4
42
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
42
43
43
44
- name : Setup Python
44
- uses : actions/setup-python@v4
45
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
45
46
with :
46
47
python-version : " 3.12"
47
48
48
49
- name : Set up Node.js
49
- uses : actions/setup-node@v4
50
+ uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
50
51
with :
51
52
node-version : " 20"
52
53
60
61
--cov=pyodide-build \
61
62
pyodide_build
62
63
63
- - uses : codecov/codecov-action@v4
64
+ - uses : codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
64
65
with :
65
66
fail_ci_if_error : false
66
67
71
72
run-integration-test : ${{ steps.check-integration-test-trigger.outputs.trigger }}
72
73
73
74
steps :
74
- - uses : actions/checkout@v4
75
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
75
76
with :
76
77
ref : ${{ github.event.pull_request.head.sha }}
77
78
@@ -84,18 +85,18 @@ jobs:
84
85
needs : [check-integration-test-trigger]
85
86
if : needs.check-integration-test-trigger.outputs.run-integration-test
86
87
steps :
87
- - uses : actions/checkout@v4
88
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
88
89
with :
89
90
# include tags so that hatch-vcs can infer the version
90
91
fetch-depth : 0
91
92
92
93
- name : Setup Python
93
- uses : actions/setup-python@v4
94
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
94
95
with :
95
96
python-version : " 3.12"
96
97
97
98
- name : Set up Node.js
98
- uses : actions/setup-node@v4
99
+ uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
99
100
with :
100
101
node-version : " 20"
101
102
@@ -110,7 +111,7 @@ jobs:
110
111
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
111
112
112
113
- name : Install Emscripten
113
- uses : mymindstorm/setup-emsdk@v12
114
+ uses : mymindstorm/setup-emsdk@6ab9eb1bda2574c4ddb79809fc9247783eaf9021 # v14
114
115
with :
115
116
version : ${{ env.EMSCRIPTEN_VERSION }}
116
117
@@ -120,8 +121,7 @@ jobs:
120
121
make test-recipe
121
122
122
123
publish :
123
- name : >-
124
- Publish to PyPI
124
+ name : Publish to PyPI
125
125
needs :
126
126
- build
127
127
runs-on : ubuntu-latest
@@ -133,9 +133,10 @@ jobs:
133
133
id-token : write # IMPORTANT: mandatory for trusted publishing
134
134
steps :
135
135
- name : Download all the dists
136
-
136
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
137
137
with :
138
- name : python-package-distributions
139
138
path : dist/
139
+ merge-multiple : true
140
+
140
141
- name : Publish distribution 📦 to PyPI
141
- uses : pypa/gh-action-pypi-publish@release/v1
142
+ uses : pypa/gh-action-pypi-publish@0ab0b79471669eb3a4d647e625009c62f9f3b241 # v1.10.1
0 commit comments