Skip to content

Commit

Permalink
Add codecov to tests workflow #48
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-austin committed Apr 12, 2023
1 parent 24b25cd commit ec652f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/python-package-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ jobs:
- name: Install package
run: pip install .
- name: Test with pytest
run: pytest
run: pytest --cov pymuonsuite --cov-report xml
- name: Upload to Codecov
if: matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Build Status](https://github.com/muon-spectroscopy-computational-project/pymuon-suite/actions/workflows/python-package-tests.yml/badge.svg?branch=main)](https://github.com/muon-spectroscopy-computational-project/pymuon-suite/actions/workflows/python-package-tests.yml)
[![Codecov](https://codecov.io/gh/muon-spectroscopy-computational-project/pymuon-suite/branch/main/graph/badge.svg)](https://codecov.io/gh/muon-spectroscopy-computational-project/pymuon-suite)

# pymuon-suite
Collection of scripts and utilities for muon spectroscopy.

Expand Down

0 comments on commit ec652f1

Please sign in to comment.