setup-python/.github/workflows/e2e-tests.yml

88 lines
2.2 KiB
YAML
Raw Normal View History

name: e2e tests
on:
push:
branches:
2020-07-14 22:05:12 +08:00
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
2019-07-12 04:15:37 +08:00
jobs:
test-setup-python:
name: Test setup-python
2019-07-12 04:15:37 +08:00
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
2024-10-09 20:17:24 +08:00
operating-system:
[ubuntu-latest, windows-latest, macos-latest, macos-13]
2019-07-26 10:59:00 +08:00
steps:
- name: Checkout
2023-11-08 18:16:06 +08:00
uses: actions/checkout@v4
2019-07-24 01:22:18 +08:00
2024-10-09 20:17:24 +08:00
- name: Run with setup-python 3.12
uses: ./
with:
2024-10-09 20:17:24 +08:00
python-version: 3.12
- name: Verify 3.12
run: python __tests__/verify-python.py 3.12
- name: Run with setup-python 3.9.13
uses: ./
with:
python-version: 3.9.13
- name: Verify 3.9.13
run: python __tests__/verify-python.py 3.9.13
2024-10-09 20:17:24 +08:00
- name: Run with setup-python 3.10.11
uses: ./
with:
python-version: 3.10.11
- name: Verify 3.10.11
run: python __tests__/verify-python.py 3.10.11
- name: Run with setup-python 3.11.9
uses: ./
with:
python-version: 3.11.9
- name: Verify 3.11.9
run: python __tests__/verify-python.py 3.11.9
- name: Run with setup-python 3.12.4
uses: ./
with:
python-version: 3.12.4
- name: Verify 3.12.4
run: python __tests__/verify-python.py 3.12.4
2024-10-10 15:42:42 +08:00
- name: Run with setup-python 3.12
id: cp312
uses: ./
with:
2024-10-10 15:42:42 +08:00
python-version: '3.12'
- name: Verify 3.12
run: python __tests__/verify-python.py 3.12
- name: Run python-path sample 3.12
run: pipx run --python '${{ steps.cp312.outputs.python-path }}' nox --version
2024-10-09 20:17:24 +08:00
- name: Run with setup-python ==3.12
uses: ./
with:
2024-10-09 20:17:24 +08:00
python-version: '==3.12'
- name: Verify ==3.12
run: python __tests__/verify-python.py 3.12
2024-10-09 20:17:24 +08:00
- name: Run with setup-python <3.13
uses: ./
with:
2024-10-09 20:17:24 +08:00
python-version: '<3.13'
- name: Verify <3.13
run: python __tests__/verify-python.py 3.12
- name: Test Raw Endpoint Access
run: |
curl -L https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json | jq empty
shell: bash