diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 430717d..404f2db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,3 +113,11 @@ jobs: - name: Run tests run: pytest + + - name: Upload coverage to Codecov + if: runner.os == 'Linux' + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage.xml + fail_ci_if_error: true diff --git a/README.md b/README.md index d8faa76..9c7a36e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # MUSE2 data analysis +[![codecov](https://codecov.io/gh/EnergySystemsModellingLab/muse2_data_analysis/graph/badge.svg?token=0B706BGSJ8)](https://codecov.io/gh/EnergySystemsModellingLab/muse2_data_analysis) + > :warning: **Note that this repository is currently a work in progress.** :warning: This repository contains Python scripts and Jupyter notebooks for analysing and