language-data/.github/workflows/mypy.yml
renovate[bot] a378729d80
chore(deps): update astral-sh/setup-uv action to v6.3.0 (#1898)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-19 21:39:15 +00:00

43 lines
1 KiB
YAML

# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: CC0-1.0
name: mypy
on:
push:
branches-ignore:
- renovate/**
- weblate
pull_request:
permissions:
contents: read
jobs:
mypy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
persist-credentials: false
- uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
with:
enable-cache: true
cache-dependency-glob: ''
cache-suffix: '3.13'
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.13'
- name: Install pip dependencies
run: uv pip install --system -e .[dev]
- name: Run mypy
run: |
echo "::add-matcher::.github/matchers/mypy.json"
mypy --show-column-numbers weblate_language_data scripts/*.py
echo "::remove-matcher owner=mypy::"