Skip to content

Commit

Permalink
Add codecov (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Mar 15, 2024
1 parent c1af348 commit c1dd2cb
Show file tree
Hide file tree
Showing 4 changed files with 465 additions and 22 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ jobs:
- name: Run unittests
uses: pavelzw/pytest-action@510c5e90c360a185039bea56ce8b3e7e51a16507
with:
custom-pytest: pixi run -e ${{ matrix.env }} pytest
custom-pytest: pixi run -e ${{ matrix.env }} coverage
report-title: ${{ matrix.env }}
- name: Upload coverage reports to Codecov
if: matrix.env == 'py312'
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml

pre-commit-checks:
# TODO: switch to pixi once there is a good way
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![conda-forge][conda-forge-badge]][conda-forge]
[![pypi-version][pypi-badge]][pypi]
[![python-version][python-version-badge]][pypi]
[![codecov][codecov-badge]][codecov]

[license-badge]: https://img.shields.io/github/license/quantco/polarify?style=flat-square
[build-badge]: https://img.shields.io/github/actions/workflow/status/quantco/polarify/ci.yml?style=flat-square&branch=main
Expand All @@ -14,6 +15,8 @@
[pypi]: https://pypi.org/project/polarify
[pypi-badge]: https://img.shields.io/pypi/v/polarify.svg?style=flat-square&logo=pypi&logoColor=white
[python-version-badge]: https://img.shields.io/pypi/pyversions/polarify?style=flat-square&logoColor=white&logo=python
[codecov-badge]: https://codecov.io/gh/quantco/polarify/branch/main/graph/badge.svg
[codecov]: https://codecov.io/gh/quantco/polarify

Welcome to **polarIFy**, a Python function decorator that simplifies the way you write logical statements for Polars. With polarIFy, you can use Python's language structures like `if / elif / else` statements and transform them into `pl.when(..).then(..).otherwise(..)` statements. This makes your code more readable and less cumbersome to write. 🎉

Expand Down
Loading

0 comments on commit c1dd2cb

Please sign in to comment.