Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 26 additions & 7 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@ on:
- main
- coverage # remove before merge to main

permissions:
contents: write
concurrency:
group: coverage-report-${{ github.ref }}
cancel-in-progress: false

jobs:
coverage-report:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
Expand All @@ -33,8 +38,22 @@ jobs:
output: htmlcov/badges.svg
jsonPath: total.statements.pct

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
- name: Upload GitHub Pages artifact 📦
uses: actions/upload-pages-artifact@v5
with:
branch: gh-pages
folder: htmlcov
path: htmlcov

deploy-pages:
name: Deploy to GitHub Pages 🚀
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5