Skip to content

Add Codecov CI workflow and update Makefile coverage command #1

Add Codecov CI workflow and update Makefile coverage command

Add Codecov CI workflow and update Makefile coverage command #1

Workflow file for this run

name: Codecov
on:
pull_request:
paths:
- 'my_pkg/**' # todo: change my_pkg to the name of the package
- 'tests/**'
- '.github/workflows/codecov.yml'
push:
branches:
- main
workflow_dispatch:
jobs:
upload-coverage-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: poetry
- run: poetry install
- run: poetry run pytest --cov=pandas_pyarrow --cov-report=xml
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
continue-on-error: true