From df9e322f2d9cb66d936fbfeac524b5989b78cfd5 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 8 Sep 2023 18:50:42 +0100 Subject: [PATCH] Run tests on py312 for more third-party projects (#281) --- .github/workflows/third_party.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/third_party.yml b/.github/workflows/third_party.yml index d07f82e3..b318e333 100644 --- a/.github/workflows/third_party.yml +++ b/.github/workflows/third_party.yml @@ -128,7 +128,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -145,6 +145,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install pyanalyze test requirements run: pip install ./pyanalyze[tests] - name: Install typing_extensions latest @@ -266,7 +267,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -283,6 +284,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install mypy test requirements run: | cd mypy @@ -320,10 +322,6 @@ jobs: uses: actions/checkout@v3 with: repository: python-attrs/cattrs - - name: Edit cattrs pyproject.toml - # cattrs's python-requires means pdm won't let us add typing-extensions-latest - # as a requirement unless we do this - run: sed -i 's/^requires-python = .*/requires-python = ">=3.8"/' pyproject.toml - name: Checkout typing_extensions uses: actions/checkout@v3 with: