Skip to content

🐛 fix: fix and enable pep622 #36

🐛 fix: fix and enable pep622

🐛 fix: fix and enable pep622 #36

Workflow file for this run

name: Coverage
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.12"
- name: Install dependencies
run: pdm install -d
- name: Run tests and coverage
run: |
pdm run coverage run -m pytest tests
pdm run coverage html --show-contexts --title "Coverage for ${{ github.sha }}"
- name: Store coverage HTML
uses: actions/upload-artifact@v3
with:
name: coverage-html
path: htmlcov