Skip to content

chore(deps-dev): bump the all-dependencies group across 1 directory w… #918

chore(deps-dev): bump the all-dependencies group across 1 directory w…

chore(deps-dev): bump the all-dependencies group across 1 directory w… #918

Workflow file for this run

name: Python SDK quality checks and unit tests
on:
push:
paths:
- "openfoodfacts/**"
- "pyproject.toml"
- "uv.lock"
- "tests/**"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.2"
- name: Load cached venv
id: cached-uv-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/uv.lock') }}
- name: Install dependencies
run: uv sync --all-extras
if: steps.cached-uv-dependencies.outputs.cache-hit != 'true'
- name: Launch quality checks
run: |
uv run ruff check .
uv run mypy .
- name: Test with pytest
run: |
uv run pytest tests