diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 9cea96678..fa1919af3 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -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 diff --git a/.github/workflows/stubtest_stdlib.yml b/.github/workflows/stubtest_stdlib.yml index e1b394f87..b4ede529e 100644 --- a/.github/workflows/stubtest_stdlib.yml +++ b/.github/workflows/stubtest_stdlib.yml @@ -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