Skip to content

[stubsabot] Bump rasterio to 1.5.2 (#16458) #5592

[stubsabot] Bump rasterio to 1.5.2 (#16458)

[stubsabot] Bump rasterio to 1.5.2 (#16458) #5592

Workflow file for this run

# This workflow is for testing typeshed's scripts and tests themselves
name: Infrastructure tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
paths:
- "scripts/**"
- "tests/**"
- "lib/**"
- ".github/workflows/meta_tests.yml"
- "requirements-tests.txt"
- "pyproject.toml"
permissions:
contents: read
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
FORCE_COLOR: 1
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
mypy:
name: "mypy: type check"
runs-on: ubuntu-latest
strategy:
matrix:
platform: ["linux", "win32"]
fail-fast: false
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
version-file: "requirements-tests.txt"
- name: Run check_typeshed_structure.py
run: |
uv run \
--python=3.13 \
--no-project \
--with-requirements=requirements-tests.txt \
./tests/typecheck_typeshed.py \
--platform=${{ matrix.platform }}
pyright:
name: "pyright: type check"
runs-on: ubuntu-latest
strategy:
matrix:
python-platform: ["Linux", "Windows"]
fail-fast: false
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.13"
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
version-file: "requirements-tests.txt"
- run: uv pip install -r requirements-tests.txt --system
- name: Run pyright on typeshed
uses: jakebailey/pyright-action@8ec14b5cfe41f26e5f41686a31eb6012758217ef # v3.0.2
with:
version: PATH
python-platform: ${{ matrix.python-platform }}
python-version: "3.10" # Oldest version supported for running scripts and tests
project: ./pyrightconfig.scripts_and_tests.json
stubsabot-dry-run:
name: "stubsabot: dry run"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
version-file: "requirements-tests.txt"
- name: Git config
run: |
git config --global user.name stubsabot
git config --global user.email '<>'
- name: Run stubsabot
run: |
uv run \
--python=3.13 \
--no-project \
--with-requirements=requirements-tests.txt \
scripts/stubsabot.py \
--action-level=local