diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 74a8098..fa4dcab 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Python package +name: test on: push: @@ -31,10 +31,14 @@ jobs: pip install -r requirements.txt - name: Test with pytest run: | - python -m pytest -v --cov --cov-report=html --cov-report=term --color=yes + python -m pytest -v --cov=./ --cov-report=xml --cov-report=html --cov-report=term --color=yes + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + file: ./coverage.xml - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: coverage-report - path: htmlcov + path: htmlcov/ diff --git a/README.md b/README.md index 4fc6fce..a446ee6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ # VA-AM +[![Documentation Status](https://readthedocs.org/projects/va-am/badge/?version=latest)](https://va-am.readthedocs.io/en/latest/?badge=latest) +[![PyPI version](https://badge.fury.io/py/va-am.svg)](https://badge.fury.io/py/va-am) +[![Conda Version](https://img.shields.io/conda/vn/conda-forge/va_am.svg)](https://anaconda.org/conda-forge/va_am) +[![Tests](https://img.shields.io/github/actions/workflow/status/GheodeAI/va_am/python-package.yml?label=test)](https://github.com/GheodeAI/va_am/actions/workflows/python-package.yml) +[![codecov](https://codecov.io/gh/GheodeAI/va_am/branch/master/graph/badge.svg)](https://codecov.io/gh/GheodeAI/va_am)