Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork26
Bump actions/setup-python from 5 to 6 in the github-actions group#907
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:Test package | |
| permissions: | |
| contents:read | |
| on: | |
| push: | |
| branches:[ main ] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on:ubuntu-latest | |
| strategy: | |
| fail-fast:false | |
| matrix: | |
| platform:[ubuntu-latest, macos-latest, windows-latest] | |
| python-version:['3.10', '3.11', '3.12', '3.13', 'pypy-3.10'] | |
| steps: | |
| -uses:actions/checkout@v5 | |
| -name:Set up Python ${{ matrix.python-version }} | |
| uses:actions/setup-python@v6 | |
| with: | |
| python-version:${{ matrix.python-version }} | |
| cache:'pip' | |
| -name:Install dependencies | |
| run:| | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -r requirements-test.txt | |
| -name:Run pre-commit | |
| run:| | |
| pre-commit run --all-files --show-diff-on-failure --verbose | |
| -name:Run mypy | |
| run:| | |
| mypy --install-types --non-interactive | |
| -name:Run tests | |
| run:| | |
| pytest tests --cov=codicefiscale --cov-report=term-missing --cov-fail-under=90 | |
| -name:Upload coverage to Codecov | |
| uses:codecov/codecov-action@v5 | |
| with: | |
| token:${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error:false | |
| files:./coverage.xml | |
| flags:unittests | |
| verbose:true |