mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Update README
This commit is contained in:
parent
8fbc418d76
commit
d025544791
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
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
|
||||
- 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
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
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
|
||||
- run: python my_script.py
|
||||
```
|
||||
|
|
|
@ -55,7 +55,7 @@ describe('Finder tests', () => {
|
|||
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');
|
||||
findSpy.mockImplementation(() => <tc.IToolRelease[]>manifestData);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue