Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@ repos:
args: [ --preview, --config=pyproject.toml ]
- id: ruff
args: [ --preview, --fix,--unsafe-fixes, --config=pyproject.toml ]

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.13
hooks:
- id: uv-lock
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ check:
uv run pre-commit run --all-files

coverage:
uv run pytest --cov=ml_orchestrator --cov-report=xml
uv run pytest --cov=my_pkg --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
# todo: change my_pkg to the name of the package

mypy:
uv tool run mypy . --config-file pyproject.toml
uv tool run mypy my_pkg --config-file pyproject.toml # todo: change my_pkg to the name of the package
Loading