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
Copy file name to clipboardExpand all lines: docs/advanced-usage.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ steps:
89
89
- run: python my_script.py
90
90
```
91
91
92
-
- **[x-ranges](https://github.com/npm/node-semver#x-ranges-12x-1x-12-)** to specify the latest stable version of Python (for specified major version):
92
+
- **[x-ranges](https://github.com/npm/node-semver#x-ranges-12x-1x-12-)** to specify the latest stable version of Python for the specified major version:
93
93
94
94
```yaml
95
95
steps:
@@ -99,6 +99,18 @@ steps:
99
99
python-version: '3.x'
100
100
- run: python my_script.py
101
101
```
102
+
103
+
Or for the latest stable version of Python without specifying any major version:
104
+
105
+
```yaml
106
+
steps:
107
+
- uses: actions/checkout@v3
108
+
- uses: actions/setup-python@v4
109
+
with:
110
+
python-version: '*'
111
+
- run: python my_script.py
112
+
```
113
+
102
114
Please refer to the [Advanced range syntax section](https://github.com/npm/node-semver#advanced-range-syntax) of the [semver](https://github.com/npm/node-semver) to check other available range syntaxes.
0 commit comments