Skip to content

Fix json coverage file issue. #7

Fix json coverage file issue.

Fix json coverage file issue. #7

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install package
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -e .[dev]
- name: Run tests with coverage
run: |
pytest --cov=pome \
--cov-report=json:coverage.json
- name: Generate coverage badge
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
uses: we-cli/coverage-badge-action@main