diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d7f1663..ce76eb98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Test package +name: CI testing on: [push] @@ -52,7 +52,8 @@ jobs: - run: coverage report - run: coverage xml - name: Upload test report - uses: actions/upload-artifact@v3 + if: ${{ matrix.python-version == '3.9' }} + uses: actions/upload-artifact@v4 with: name: test path: test_report.xml @@ -62,9 +63,19 @@ jobs: with: name: coverage path: coverage.xml + - name: Test Reporter + if: ${{ matrix.python-version == '3.9' }} + uses: dorny/test-reporter@v1.7.0 + with: + name: CI-test-report + path: test_report.xml + reporter: java-junit - name: Coveralls GitHub Action if: ${{ matrix.python-version == '3.9' }} uses: coverallsapp/github-action@v2.2.3 + with: + file: coverage.xml + doc-test: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 8eee6eff..3169d0e8 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ MontePY: a cute snek on a red over white circle +[![license](https://img.shields.io/github/license/idaholab/MontePy.svg)](https://github.com/idaholab/MontePy/blob/develop/LICENSE) +[![Coverage Status](https://coveralls.io/repos/github/idaholab/MontePy/badge.svg?branch=develop)](https://coveralls.io/github/idaholab/MontePy?branch=develop) +[![PyPI version](https://badge.fury.io/py/montepy.svg)](https://badge.fury.io/py/montepy) + A python library to read, edit, and write MCNP input files. ## Installing diff --git a/pyproject.toml b/pyproject.toml index 20f93952..fe4d871d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,6 +72,7 @@ version = {attr = "montepy.__version__"} [tool.coverage.run] source = ["montepy"] +omit = ["montepy/_version.py"] [tool.coverage.report] precision = 2