Skip to content

⬆️ Lock file maintenance #2078

⬆️ Lock file maintenance

⬆️ Lock file maintenance #2078

Workflow file for this run

---
name: Typing
# yamllint disable-line rule:truthy
on:
push:
pull_request:
workflow_dispatch:
# Cancel superseded runs for the same ref to save CI minutes.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
mypy:
name: mypy
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: 🏗 Set up uv and Python
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
python-version: "3.12"
- name: 🏗 Install type checkers
run: uv sync --locked --only-group typing
- name: 🚀 Run mypy
run: uv run --no-sync mypy pysrc/yamlrocks
ty:
name: ty
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: 🏗 Set up uv and Python
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
python-version: "3.12"
- name: 🏗 Install type checkers
run: uv sync --locked --only-group typing
- name: 🚀 Run ty
run: uv run --no-sync ty check pysrc/yamlrocks