Skip to content

chore(deps): update dependency astral-sh/uv to v0.9.7 (#1145) #136

chore(deps): update dependency astral-sh/uv to v0.9.7 (#1145)

chore(deps): update dependency astral-sh/uv to v0.9.7 (#1145) #136

Workflow file for this run

# 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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Install apt dependencies
run: |
sudo apt update
sudo apt install libcairo-dev gir1.2-pango-1.0 libgirepository-2.0-dev libacl1-dev gettext liblz4-dev libzstd-dev libxxhash-dev gir1.2-rsvg-2.0 libleptonica-dev libtesseract-dev
- name: Setup Python
id: setup_python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: '3.14'
- uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
with:
save-cache: ${{ github.ref == 'refs/heads/main' }}
cache-suffix: ${{ steps.setup_python.outputs.python-version }}
version: 0.9.7
- name: Install deps
env:
CI_DATABASE: postgresql
run: |
uv sync --group types
uv pip install https://github.com/WeblateOrg/weblate/archive/main.zip
- name: Run mypy
env:
CI_DATABASE: postgresql
run: |
echo "::add-matcher::.github/matchers/mypy.json"
uv run --no-sync mypy --show-column-numbers wlhosted
echo "::remove-matcher owner=mypy::"