Skip to content

Enable test coverage measurement #163

Enable test coverage measurement

Enable test coverage measurement #163

name: Tests
on: [push, pull_request]
jobs:
test:
name: Run tests
runs-on: ubuntu-24.04
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: 3.13
- name: Install dependencies
run: |
pdm install -G test
- name: Run tests
run: |
pdm run -v pytest --cov=QuantSI --cov-report lcov --doctest-modules
- name: Publish coverage
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
format: lcov