From b38ff543d3a64238d0ac1a349af149ff4ec71fd9 Mon Sep 17 00:00:00 2001 From: "J. Derek Tucker" Date: Sat, 18 Nov 2023 08:56:49 -0700 Subject: [PATCH] update readme --- .github/workflows/python-publish.yml | 9 +++++++-- README.md | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 49736b3b..dd6487da 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -34,7 +34,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest + python -m pip install flake8 pytest pytest-runner coverage if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | @@ -44,7 +44,12 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest + python setup.py pytest --addopts "test" + - name: Generate Report + run: | + coverage run -m unittest + - name: Upload Coverage to Codecov + uses: codecov/codecov-action@v3 - name: Create Release id: create_release uses: actions/create-release@v1 diff --git a/README.md b/README.md index 8ddbb5d7..b6ae524e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build](https://github.com/jdtuck/fdasrsf_python/actions/workflows/python-package.yaml/badge.svg)](https://github.com/jdtuck/fdasrsf_python/actions/workflows/python-package.yaml) +[![Build](https://github.com/jdtuck/fdasrsf_python/actions/workflows/CI/badge.svg)](https://github.com/jdtuck/fdasrsf_python/actions/workflows/python-package.yaml) [![codecov](https://codecov.io/gh/jdtuck/fdasrsf_python/branch/master/graph/badge.svg)](https://codecov.io/gh/jdtuck/fdasrsf_python) [![Build status](https://img.shields.io/appveyor/ci/jdtuck/fdasrsf-python.svg?style=flat-square&label=windows)](https://ci.appveyor.com/project/jdtuck/fdasrsf-python/branch/master) [![Documentation Status](https://readthedocs.org/projects/fdasrsf-python/badge/?version=latest)](https://fdasrsf-python.readthedocs.io/en/latest/?badge=latest)