Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fe396d3

Browse filesBrowse files
author
IvanZosimov
committed
Revert changes
1 parent 853c012 commit fe396d3
Copy full SHA for fe396d3

File tree

Expand file treeCollapse file tree

1 file changed

+12
-11
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-11
lines changed

‎docs/advanced-usage.md

Copy file name to clipboardExpand all lines: docs/advanced-usage.md
+12-11Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
## Specifying a Python version
2323

24-
- If there is a specific version of Python that you need and you don't want to worry about any potential breaking changes due to patch updates (going from `3.7.5` to `3.7.6` for example), you should specify the **exact major, minor, and patch version** (such as `3.7.5`):
24+
If there is a specific version of Python that you need and you don't want to worry about any potential breaking changes due to patch updates (going from `3.7.5` to `3.7.6` for example), you should specify the **exact major, minor, and patch version** (such as `3.7.5`):
2525

2626
```yaml
2727
steps:
@@ -31,10 +31,11 @@ steps:
3131
python-version: '3.7.5'
3232
- run: python my_script.py
3333
```
34-
- The only downside to this is that set-up will take a little longer since the exact version will have to be downloaded if the exact version is not already installed on the runner due to more recent versions.
35-
- MSI installers are used on Windows for this, so runs will take a little longer to set up vs MacOS and Linux.
3634
37-
- You can specify **only a major and minor version** if you are okay with the most recent patch version being used:
35+
- The only downside to this is that set-up will take a little longer since the exact version will have to be downloaded if the exact version is not already installed on the runner due to more recent versions.
36+
- MSI installers are used on Windows for this, so runs will take a little longer to set up vs MacOS and Linux.
37+
38+
You can specify **only a major and minor version** if you are okay with the most recent patch version being used:
3839
3940
```yaml
4041
steps:
@@ -44,11 +45,11 @@ steps:
4445
python-version: '3.7'
4546
- run: python my_script.py
4647
```
47-
- There will be a single patch version already installed on each runner for every minor version of Python that is supported.
48-
- The patch version that will be preinstalled, will generally be the latest and every time there is a new patch released, the older version that is preinstalled will be replaced.
49-
- Using the most recent patch version will result in a very quick setup since no downloads will be required since a locally installed version of Python on the runner will be used.
48+
- There will be a single patch version already installed on each runner for every minor version of Python that is supported.
49+
- The patch version that will be preinstalled, will generally be the latest and every time there is a new patch released, the older version that is preinstalled will be replaced.
50+
- Using the most recent patch version will result in a very quick setup since no downloads will be required since a locally installed version of Python on the runner will be used.
5051
51-
- You can specify the version with **prerelease tag** to download and set up an accurate pre-release version of Python:
52+
You can specify the version with **prerelease tag** to download and set up an accurate pre-release version of Python:
5253
5354
```yaml
5455
steps:
@@ -59,7 +60,7 @@ steps:
5960
- run: python my_script.py
6061
```
6162
62-
- It's also possible to use **x.y-dev syntax** to download and set up the latest patch version of Python, alpha and beta releases included. (for specified major & minor versions):
63+
It's also possible to use **x.y-dev syntax** to download and set up the latest patch version of Python, alpha and beta releases included. (for specified major & minor versions):
6364
6465
```yaml
6566
steps:
@@ -70,7 +71,7 @@ steps:
7071
- run: python my_script.py
7172
```
7273
73-
- You can also use several types of ranges that are specified in [semver](https://github.com/npm/node-semver#ranges), for instance:
74+
You can also use several types of ranges that are specified in [semver](https://github.com/npm/node-semver#ranges), for instance:
7475
7576
- **[hyphen ranges](https://github.com/npm/node-semver#hyphen-ranges-xyz---abc)** to download and set up the latest available version of Python (includes both pre-release and stable versions):
7677
@@ -83,7 +84,7 @@ steps:
8384
- run: python my_script.py
8485
```
8586
86-
- **[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):
87+
**[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):
8788
8889
```yaml
8990
steps:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.