From 4a9c232d611eb2aef99582c31926c9a93dff8adb Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Sun, 21 Apr 2024 22:15:14 +0100 Subject: [PATCH] code cov and badge --- .github/workflows/ci_with_install.yml | 10 +++++----- README.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci_with_install.yml b/.github/workflows/ci_with_install.yml index eeed405..f3e3e17 100644 --- a/.github/workflows/ci_with_install.yml +++ b/.github/workflows/ci_with_install.yml @@ -2,11 +2,11 @@ name: CI testing on: pull_request: - # branches: - # - main + branches: + - main push: - # branches: - # - main + branches: + - main jobs: testing: @@ -40,4 +40,4 @@ jobs: python -m pip install .[density,tests] - name: run pytest - run: python -m pytest -v tests + run: python -m pytest tests -v --cov=neutronics_material_maker --cov-report term --cov-report html:htmlcov --cov-report xml --junitxml=test-reports/junit.xml diff --git a/README.md b/README.md index 22dd155..d737500 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![N|Python](https://www.python.org/static/community_logos/python-powered-w-100x40.png)](https://www.python.org) -[![CircleCI](https://circleci.com/gh/fusion-energy/neutronics_material_maker/tree/main.svg?style=svg)](https://circleci.com/gh/fusion-energy/neutronics_material_maker/tree/main) +[![CI testing](https://github.com/fusion-energy/neutronics_material_maker/actions/workflows/ci_with_install.yml/badge.svg?branch=main)](https://github.com/fusion-energy/neutronics_material_maker/actions/workflows/ci_with_install.yml) [![codecov](https://codecov.io/gh/fusion-energy/neutronics_material_maker/branch/main/graph/badge.svg)](https://codecov.io/gh/fusion-energy/neutronics_material_maker) [![PyPI version](https://badge.fury.io/py/neutronics-material-maker.svg)](https://badge.fury.io/py/neutronics-material-maker) [![Documentation Status](https://readthedocs.org/projects/neutronics-material-maker/badge/?version=latest)](https://neutronics-material-maker.readthedocs.io/en/latest/?badge=latest)