mirror of
https://github.com/WeblateOrg/weblate.git
synced 2026-07-27 22:46:38 +08:00
43 lines
1.1 KiB
YAML
Vendored
43 lines
1.1 KiB
YAML
Vendored
# Copyright © Michal Čihař <michal@weblate.org>
|
|
#
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
name: pylint check
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- renovate/**
|
|
- weblate
|
|
- dependabot/**
|
|
- copilot/**
|
|
- codex/**
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pylint:
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install apt dependencies
|
|
run: sudo ./ci/apt-install
|
|
- name: Setup Python
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
id: setup_python
|
|
with:
|
|
python-version: '3.14'
|
|
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
|
|
with:
|
|
save-cache: ${{ github.ref == 'refs/heads/main' }}
|
|
cache-suffix: ${{ steps.setup_python.outputs.python-version }}
|
|
version: 0.11.32
|
|
- name: Install deps
|
|
run: uv sync --no-binary-package lxml --no-binary-package xmlsec --all-extras --group pylint
|
|
- name: Run pylint
|
|
run: uv run --no-sync pylint --output-format=github weblate/ scripts/
|