mirror of
https://github.com/actions/setup-python.git
synced 2025-04-19 19:33:29 +00:00
Update README
This commit is contained in:
parent
8fbc418d76
commit
d025544791
@ -92,26 +92,24 @@ jobs:
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Download and set up a specific unstable version of Python:
|
Download and set up the accurate pre-release version of Python:
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9.0-beta.4'
|
python-version: '3.9.0-beta.4'
|
||||||
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
|
|
||||||
stable: false # optional true or false. Defaults to true if not specified
|
stable: false # optional true or false. Defaults to true if not specified
|
||||||
- run: python my_script.py
|
- run: python my_script.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Download and set up a latest available unstable version of Python (including a stable version):
|
Download and set up the latest available version of Python (including both pre-release and stable versions):
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.9.0-alpha - 3.9.0' # SemVer's version range syntax
|
python-version: '3.9.0-alpha - 3.9.0' # SemVer's version range syntax
|
||||||
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
|
|
||||||
stable: false # optional true or false. Defaults to true if not specified
|
stable: false # optional true or false. Defaults to true if not specified
|
||||||
- run: python my_script.py
|
- run: python my_script.py
|
||||||
```
|
```
|
||||||
|
@ -55,7 +55,7 @@ describe('Finder tests', () => {
|
|||||||
await finder.findPythonVersion('1.2.3', 'x64', true);
|
await finder.findPythonVersion('1.2.3', 'x64', true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Finds unstable Python version in the manifest', async () => {
|
it('Finds pre-release Python version in the manifest', async () => {
|
||||||
const findSpy: jest.SpyInstance = jest.spyOn(tc, 'getManifestFromRepo');
|
const findSpy: jest.SpyInstance = jest.spyOn(tc, 'getManifestFromRepo');
|
||||||
findSpy.mockImplementation(() => <tc.IToolRelease[]>manifestData);
|
findSpy.mockImplementation(() => <tc.IToolRelease[]>manifestData);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user