Update README

This commit is contained in:
MaksimZhukov 2020-07-15 19:28:19 +03:00
parent 8fbc418d76
commit d025544791
2 changed files with 3 additions and 5 deletions

View File

@ -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
``` ```

View File

@ -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);