Skip to content

Commit 950a661

Browse files
committed
docs: implement changes suggested by @mahabaleshwars (deprecate pypy2.7, 3.7, 3.8, tweak example, remove wildcard *)
Signed-off-by: Stephen L. <[email protected]>
1 parent dfdeeb8 commit 950a661

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/advanced-usage.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ The `-v<pypy_version>` parameter is optional and can be skipped. The latest PyPy
120120
```
121121
pypy3.10 or pypy-3.10 # the latest available version of PyPy that supports Python 3.10
122122
pypy3.9 or pypy-3.9 # the latest available version of PyPy that supports Python 3.9
123-
pypy2.7 or pypy-2.7 # the latest available version of PyPy that supports Python 2.7
124123
pypy3.7-v7.3.3 or pypy-3.7-v7.3.3 # Python 3.7 and PyPy 7.3.3
125124
pypy3.7-v7.x or pypy-3.7-v7.x # Python 3.7 and the latest available PyPy 7.x
126125
pypy3.7-v7.3.3rc1 or pypy-3.7-v7.3.3rc1 # Python 3.7 and preview version of PyPy
@@ -213,7 +212,7 @@ jobs:
213212
runs-on: ubuntu-latest
214213
strategy:
215214
matrix:
216-
python-version: ['3.x', 'pypy2.7', 'pypy3.8', 'pypy3.9' ]
215+
python-version: ['3.x', 'pypy3.8', 'pypy3.9' ]
217216
name: Python ${{ matrix.python-version }} sample
218217
steps:
219218
- uses: actions/checkout@v4
@@ -232,22 +231,23 @@ jobs:
232231
build:
233232
runs-on: ${{ matrix.os }}
234233
strategy:
234+
fail-fast: false
235235
matrix:
236236
os: [ubuntu-latest, macos-latest, windows-latest]
237-
python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy2.7', 'pypy3.9']
237+
python-version: ['3.9', '3.10', '3.11', 'pypy3.9']
238238
exclude:
239239
- os: macos-latest
240-
python-version: '3.8'
240+
python-version: '3.9'
241241
- os: windows-latest
242-
python-version: '3.8'
242+
python-version: '3.9'
243243
steps:
244244
- uses: actions/checkout@v4
245245
- name: Set up Python
246246
uses: actions/setup-python@v5
247247
with:
248248
python-version: ${{ matrix.python-version }}
249249
- name: Display Python version
250-
if: ${{ python-version != 'pypy2.7' }} # in if statements, use single-quotes (not double-quotes) in expressions to test input `python-version`
250+
if: ${{ matrix.python-version != 'pypy3.9' }} # Use single quotes in expressions for input `python-version`
251251
run: python --version
252252
```
253253
@@ -384,7 +384,7 @@ steps:
384384

385385
### `python-version`
386386

387-
Using **python-version** output, it's possible to get the precise Python or PyPy version installed by the action. This output is useful when the input `python-version` is given as a range (e.g. 3.8.0 - 3.12.0, 3.x, * ), but down the line you need to operate (such as in an `if:` statement) with the exact installed version (e.g. 3.12.0).
387+
Using **python-version** output, it's possible to get the precise Python or PyPy version installed by the action. This output is useful when the input `python-version` is given as a range (e.g. 3.9.0 - 3.12.0, 3.x ), but down the line you need to operate (such as in an `if:` statement) with the exact installed version (e.g. 3.12.0).
388388

389389
```yaml
390390
jobs:
@@ -395,7 +395,7 @@ jobs:
395395
- uses: actions/setup-python@v5
396396
id: cp312
397397
with:
398-
python-version: "3.8.0 - 3.12.0"
398+
python-version: "3.9.0 - 3.12.0"
399399
- run: echo '${{ steps.cp312.outputs.python-version }}'
400400
```
401401

0 commit comments

Comments
 (0)