refactor: sostituiti 24 modelli Pydantic con semplici dataclass #1206
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Python setup | |
| uses: dataciviclab/.github/actions/python-setup@main | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| extra-packages: -e ".[dev]" | |
| - name: Ruff | |
| run: python -m ruff check . | |
| - name: Mypy | |
| run: python -m mypy toolkit/ | |
| - name: Pytest | |
| run: python -m pytest -p pytest_cov -n auto -q -p no:cacheprovider -m "not smoke" --cov=toolkit --cov-report=term-missing --cov-report=xml --cov-fail-under=81 | |
| - name: Upload Coverage Artifact | |
| if: always() && hashFiles('coverage.xml') != '' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-py${{ matrix.python-version }} | |
| path: coverage.xml | |
| - name: Install And CLI Smoke | |
| if: ${{ hashFiles('scripts/smoke_install_cli.py') != '' }} | |
| run: python scripts/smoke_install_cli.py | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Python setup | |
| uses: dataciviclab/.github/actions/python-setup@main | |
| with: | |
| python-version: "3.12" | |
| extra-packages: build twine | |
| - name: Build Distributions | |
| run: python -m build | |
| - name: Twine Check | |
| run: python -m twine check dist/* |