mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
CI: Pin Python to 3.7.16 for stubtest runs on macos (#10336)
This commit is contained in:
13
.github/workflows/daily.yml
vendored
13
.github/workflows/daily.yml
vendored
@@ -36,17 +36,28 @@ jobs:
|
||||
matrix:
|
||||
# tkinter doesn't import on macOS-12
|
||||
os: ["ubuntu-latest", "windows-latest", "macos-11"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
||||
if: ${{ matrix.os != 'macos-11' || matrix.python-version != '3.7' }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
allow-prereleases: true
|
||||
# Handle the py37 run on macos differently,
|
||||
# to workaround https://github.com/actions/setup-python/issues/682
|
||||
- name: Setup Python 3.7.16 on macos
|
||||
if: ${{ matrix.os == 'macos-11' && matrix.python-version == '3.7' }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.7.16"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements-tests.txt
|
||||
- name: Run stubtest
|
||||
|
||||
13
.github/workflows/stubtest_stdlib.yml
vendored
13
.github/workflows/stubtest_stdlib.yml
vendored
@@ -32,17 +32,28 @@ jobs:
|
||||
matrix:
|
||||
# tkinter doesn't import on macOS 12
|
||||
os: ["ubuntu-latest", "windows-latest", "macos-11"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
|
||||
if: ${{ matrix.os != 'macos-11' || matrix.python-version != '3.7' }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
allow-prereleases: true
|
||||
# Handle the py37 run on macos differently,
|
||||
# to workaround https://github.com/actions/setup-python/issues/682
|
||||
- name: Setup Python 3.7.16 on macos
|
||||
if: ${{ matrix.os == 'macos-11' && matrix.python-version == '3.7' }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.7.16"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements-tests.txt
|
||||
- name: Run stubtest
|
||||
|
||||
Reference in New Issue
Block a user