Skip to content

14th commit

14th commit #12

Workflow file for this run

name: PR Coverage Diff - CI
on:
pull_request:
jobs:
run-tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-versions:
- "3.11"
name: Test Job
runs-on: ${{matrix.os}}
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python-versions}}
- name: Install dependencies
run: pip install pytest pytest-cov
- name: Run tests
run: pytest --cov
- name: Upload results to Codecov
run: |
# Replace `linux` below with the appropriate OS
# Options are `alpine`, `linux`, `macos`, `windows`
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