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'