Skip to content

Fix pytest badge

Fix pytest badge #11

Workflow file for this run

name: Basic Codecov workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: Run pytest and upload to Codecov
steps:
- uses: actions/checkout@v4
- name: Install requirements
run: pip install -r requirements.txt
- name: Run tests and collect coverage
run: pytest --cov .
- name: Upload coverage reports to Codecov
run: |
curl -Os https://cli.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml