From 03c65a44a1489cb456d37a490744302cf73ceed8 Mon Sep 17 00:00:00 2001 From: Aurash Karimi Date: Wed, 18 Mar 2026 11:57:16 +0000 Subject: [PATCH 1/2] add code cov --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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 From a5b618a1120f49b3ef6ffb6b9b7905d82000cf19 Mon Sep 17 00:00:00 2001 From: Aurash Karimi Date: Fri, 24 Apr 2026 12:02:29 +0100 Subject: [PATCH 2/2] add code cov badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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