You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More details on PyPy syntax can be found in the [Available versions of PyPy](#pypy) section.
134
135
136
+
### Specifying multiple Python/PyPy version
137
+
The python-version input can get multiple python/pypy versions. The last specified version will be used as a default one.
138
+
139
+
Download and set up multiple Python versions:
140
+
141
+
```yaml
142
+
jobs:
143
+
build:
144
+
runs-on: ubuntu-latest
145
+
steps:
146
+
- uses: actions/checkout@v3
147
+
- uses: actions/setup-python@v4
148
+
with:
149
+
python-version: |
150
+
3.8
151
+
3.9
152
+
3.10
153
+
- run: python my_script.py
154
+
```
155
+
156
+
Download and set up multiple PyPy versions:
157
+
158
+
```yaml
159
+
jobs:
160
+
build:
161
+
runs-on: ubuntu-latest
162
+
steps:
163
+
- uses: actions/checkout@v3
164
+
- uses: actions/setup-python@v4
165
+
with:
166
+
python-version: |
167
+
pypy-3.7-v7.3.x
168
+
pypy3.9-nightly
169
+
pypy3.8
170
+
- run: python my_script.py
171
+
```
172
+
173
+
Download and set up multiple Python/PyPy versions:
174
+
175
+
```yaml
176
+
jobs:
177
+
build:
178
+
runs-on: ubuntu-latest
179
+
steps:
180
+
- uses: actions/checkout@v3
181
+
- uses: actions/setup-python@v4
182
+
with:
183
+
python-version: |
184
+
3.8
185
+
3.9
186
+
pypy3.9-nightly
187
+
pypy3.8
188
+
3.10
189
+
- run: python my_script.py
190
+
```
191
+
135
192
### Matrix Testing
136
193
137
194
Using `setup-python` it's possible to use [matrix syntax](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix) to install several versions of Python or PyPy:
0 commit comments