Merge pull request #198 from fingerprintjs/chore/migrate-to-uv-inter-… #164
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: 'coverage-report' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - coverage # remove before merge to main | |
| permissions: | |
| contents: write | |
| jobs: | |
| coverage-report: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| enable-cache: true | |
| python-version: "3.13" | |
| - name: "Install dependencies" | |
| run: uv sync | |
| - name: "Generate coverage" | |
| run: | | |
| uv run coverage run --source=fingerprint_server_sdk -m pytest | |
| uv run coverage html | |
| uv run coverage json | |
| uv run python ./generate_coverage_summary.py | |
| rm ./htmlcov/.gitignore | |
| - name: Create Coverage Badges | |
| uses: jaywcjlove/coverage-badges-cli@e07f25709cd25486855c1ba1b26da53576ff3620 | |
| with: | |
| source: coverage-summary.json | |
| output: htmlcov/badges.svg | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@8817a56e5bfec6e2b08345c81f4d422db53a2cdc | |
| with: | |
| branch: gh-pages | |
| folder: htmlcov |