mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Run tests with Python 3.12 (#11544)
This commit is contained in:
4
.github/workflows/daily.yml
vendored
4
.github/workflows/daily.yml
vendored
@@ -67,6 +67,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
# TODO: Use Python 3.12. As of 2024-03-08, several third-party
|
||||
# packages fail to install with Python 3.12.
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: |
|
||||
@@ -115,7 +117,7 @@ jobs:
|
||||
path: stub_uploader
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.12"
|
||||
- name: Install uv
|
||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- name: Run tests
|
||||
|
||||
9
.github/workflows/meta_tests.yml
vendored
9
.github/workflows/meta_tests.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.12"
|
||||
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- run: uv pip install -r requirements-tests.txt --system
|
||||
- run: python ./tests/typecheck_typeshed.py --platform=${{ matrix.platform }}
|
||||
@@ -52,7 +52,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.9"
|
||||
# Max supported Python version as of pytype 2024.2.27.
|
||||
python-version: "3.11"
|
||||
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- run: uv pip install -r requirements-tests.txt --system
|
||||
- name: Get pyright version
|
||||
@@ -66,7 +67,7 @@ jobs:
|
||||
with:
|
||||
version: ${{ steps.pyright_version.outputs.value }}
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: "3.9"
|
||||
python-version: "3.9" # The Python version to test against.
|
||||
project: ./pyrightconfig.scripts_and_tests.json
|
||||
stubsabot-dry-run:
|
||||
name: Stubsabot dry run
|
||||
@@ -75,7 +76,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.12"
|
||||
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- name: Git config
|
||||
run: |
|
||||
|
||||
2
.github/workflows/mypy_primer.yml
vendored
2
.github/workflows/mypy_primer.yml
vendored
@@ -31,6 +31,8 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
# TODO: As of 2024-03-08, confluent-kafka fails to install with
|
||||
# Python 3.12.
|
||||
python-version: "3.11"
|
||||
- name: Install dependencies
|
||||
run: pip install git+https://github.com/hauntsaninja/mypy_primer.git
|
||||
|
||||
2
.github/workflows/stubsabot.yml
vendored
2
.github/workflows/stubsabot.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.12"
|
||||
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- name: git config
|
||||
run: |
|
||||
|
||||
2
.github/workflows/stubtest_third_party.yml
vendored
2
.github/workflows/stubtest_third_party.yml
vendored
@@ -41,6 +41,8 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
# TODO: Use Python 3.12. As of 2024-03-08, several third-party
|
||||
# packages fail to install with Python 3.12.
|
||||
python-version: "3.10"
|
||||
cache: pip
|
||||
cache-dependency-path: |
|
||||
|
||||
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.12"
|
||||
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- run: uv pip install -r requirements-tests.txt --system
|
||||
- run: python ./tests/check_consistent.py
|
||||
@@ -41,7 +41,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.12"
|
||||
- run: ./tests/check_new_syntax.py
|
||||
|
||||
pytype:
|
||||
@@ -51,6 +51,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
# Max supported Python version as of pytype 2024.2.27.
|
||||
python-version: "3.11"
|
||||
- name: Install uv
|
||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
@@ -89,7 +90,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.12"
|
||||
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- run: uv pip install -r requirements-tests.txt --system
|
||||
- run: python ./tests/regr_test.py --all --verbosity QUIET
|
||||
@@ -106,7 +107,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.12"
|
||||
- name: Install uv
|
||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- name: Install typeshed test-suite requirements
|
||||
@@ -171,7 +172,7 @@ jobs:
|
||||
path: stub_uploader
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
python-version: "3.12"
|
||||
- name: Install uv
|
||||
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- name: Run tests
|
||||
|
||||
Reference in New Issue
Block a user