From 608632e599f72001aa9abed1c6793e74b37a7740 Mon Sep 17 00:00:00 2001 From: Zio Gabber <78922322+Gabrymi93@users.noreply.github.com> Date: Sun, 16 Aug 2026 11:42:23 +0100 Subject: [PATCH] ci: usa componenti condivisi org (python-setup, python-ci) --- .github/workflows/ci.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae87439..9a0b9a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,22 +13,19 @@ jobs: steps: - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 + - uses: dataciviclab/.github/actions/python-setup@main with: - python-version: "3.12" - cache: pip - cache-dependency-path: requirements.txt + extra-packages: ruff - - name: Install dependencies - run: pip install -r requirements.txt - - - name: Lint with ruff - uses: astral-sh/ruff-action@v3 - - - name: Test with pytest (fast) - run: > - python -m pytest tests/ -v -m "not smoke" - --cov=sources --cov-report=term --cov-fail-under=65 + - uses: dataciviclab/.github/actions/python-ci@main + with: + lint_paths: "." + mypy_paths: "" + test_dir: "tests" + pytest_args: "-v -m \"not smoke\"" + cov_module: "sources" + cov_report: "term" + cov_threshold: "65" - name: Smoke test (rete, solo su main) if: github.ref == 'refs/heads/main'