smolagents-audit/.github/workflows/quality.yml
dependabot[bot] fcc81e9999
Bump the actions group across 1 directory with 6 updates (#2558)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 07:05:48 +02:00

35 lines
850 B
YAML

name: Quality Check
on: [pull_request]
env:
UV_SYSTEM_PYTHON: 1
permissions: {}
jobs:
check_code_quality:
permissions:
contents: read
runs-on: ubuntu-latest
env:
UV_HTTP_TIMEOUT: 600 # max 10min to install deps
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v6
with:
python-version: "3.12"
# Setup venv
- name: Setup uv
run: |
pip install --upgrade uv
- name: Install dependencies
run: uv pip install "smolagents[quality] @ ."
# Equivalent of "make quality" but step by step
- run: ruff check examples src tests # linter
- run: ruff format --check examples src tests # formatter