mirror of
https://github.com/actions/setup-python.git
synced 2025-07-22 19:38:19 +02:00
fixing comments
This commit is contained in:
parent
17904c7b69
commit
0130854fbc
4 changed files with 91 additions and 43 deletions
13
.github/workflows/test-python.yml
vendored
13
.github/workflows/test-python.yml
vendored
|
@ -196,7 +196,8 @@ jobs:
|
|||
}
|
||||
$pythonVersion
|
||||
shell: pwsh
|
||||
setup-python-multiple-versions:
|
||||
|
||||
setup-python-multiple-python-versions:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -207,13 +208,17 @@ jobs:
|
|||
- name: Setup Python and check latest
|
||||
uses: ./
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
python-version: |
|
||||
3.7
|
||||
3.8
|
||||
3.9
|
||||
3.10
|
||||
check-latest: true
|
||||
- name: Validate version
|
||||
run: |
|
||||
$pythonVersion = (python --version)
|
||||
if ("$pythonVersion" -NotMatch "${{ matrix.python-version }}"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python-version }}"
|
||||
if ("$pythonVersion" -NotMatch "3.10"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is 3.10"
|
||||
exit 1
|
||||
}
|
||||
$pythonVersion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue