Skip to content

Commit

Permalink
Add badges to readme and enable codecov (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein authored Jun 18, 2024
1 parent f5d0aa3 commit 7f5a16d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
fetch-depth: 0
- name: Run pre-commit-conda
uses: quantco/pre-commit-conda@v1

mypy-type-checks:
name: Mypy Type Checks
runs-on: ubuntu-latest
Expand All @@ -45,7 +46,7 @@ jobs:
run: mypy .

unit-tests:
name: Unit Tests - ${{ matrix.os == 'ubuntu-latest-8core' && 'Linux' || 'Windows' }} - Python ${{ matrix.python-version }}
name: Unit Tests - ${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Windows' }} - Python ${{ matrix.python-version }}
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -76,3 +77,9 @@ jobs:
with:
report-title: Unit Tests - ${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Windows' }} - Python ${{ matrix.python-version }}
custom-arguments: --cov=metalearners --cov-report=xml --cov-report term-missing --color=yes
- name: Upload coverage reports to Codecov
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
Changelog
=========

0.4.2 (2024-06-18)
------------------

* Ship license file.

0.4.1 (2024-06-18)
------------------

Expand Down
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
# metalearners

[![CI](https://github.com/Quantco/metalearners/actions/workflows/ci.yaml/badge.svg)](https://github.com/Quantco/metalearners/actions/workflows/ci.yaml)
[![Documentation Status](https://readthedocs.org/projects/metalearners/badge/?version=latest)](https://metalearners.readthedocs.io/en/latest/?badge=latest)
[![Conda-forge](https://img.shields.io/conda/vn/conda-forge/metalearners?logoColor=white&logo=conda-forge)](https://anaconda.org/conda-forge/metalearners)
[![PypiVersion](https://img.shields.io/pypi/v/metalearners.svg?logo=pypi&logoColor=white)](https://pypi.org/project/metalearners)
[![codecov.io](https://codecov.io/github/QuantCo/metalearners/coverage.svg?branch=main)](https://codecov.io/github/QuantCo/metalearners?branch=main)

MetaLearners for CATE estimation

## Installation

You can install the package in development mode using:
`metalearners` can either be installed via PyPI with

```bash
git clone https://github.com/quantco/metalearners
cd metalearners

# create and activate a fresh environment named metalearners
# see environment.yml for details
micromamba create -f environment.yml
micromamba activate metalearners

pre-commit install
pip install --no-build-isolation -e .
$ pip install metalearners
```

## Credits
or via conda-forge with

Original implementation by @FrancescMartiEscofetQC and @kklein.
```bash
$ conda install metalearners -c conda-forge
```

0 comments on commit 7f5a16d

Please sign in to comment.