mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Add tests for python version files
This commit is contained in:
parent
e1bb6df076
commit
3e4f08959a
1 changed files with 28 additions and 0 deletions
28
.github/workflows/e2e-tests.yml
vendored
28
.github/workflows/e2e-tests.yml
vendored
|
@ -86,3 +86,31 @@ jobs:
|
|||
run: python __tests__/verify-python.py 3.10
|
||||
- name: Run python-path sample 3.10
|
||||
run: pipx run --python '${{ steps.cp310.outputs.python-path }}' nox --version
|
||||
|
||||
- name: Run with setup-python ==3.8
|
||||
uses: ./
|
||||
with:
|
||||
python-version: '==3.8'
|
||||
- name: Verify ==3.8
|
||||
run: python __tests__/verify-python.py 3.8
|
||||
|
||||
- name: Run with setup-python <3.11
|
||||
uses: ./
|
||||
with:
|
||||
python-version: '<3.11'
|
||||
- name: Verify <3.11
|
||||
run: python __tests__/verify-python.py 3.10
|
||||
|
||||
- name: Run with setup-python >3.8
|
||||
uses: ./
|
||||
with:
|
||||
python-version: '>3.8'
|
||||
- name: Verify >3.8
|
||||
run: python __tests__/verify-python.py 3.11
|
||||
|
||||
- name: Run with setup-python >=3.8,<3.10
|
||||
uses: ./
|
||||
with:
|
||||
python-version: '>=3.8,<3.10'
|
||||
- name: Verify >=3.8,<3.10
|
||||
run: python __tests__/verify-python.py 3.9
|
||||
|
|
Loading…
Add table
Reference in a new issue