Merge pull request #216 from fingerprintjs/feat/open-api-v3.6.0 #177
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@v7 | |
| - 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@998665f7962b1a3935ba8c3e786171a99436e5d1 # v2.3.0 | |
| with: | |
| source: coverage-summary.json | |
| output: htmlcov/badges.svg | |
| jsonPath: total.statements.pct | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0 | |
| with: | |
| branch: gh-pages | |
| folder: htmlcov |