Skip to content

Commit

Permalink
Merge pull request #2 from MicahGale/all-in-cd
Browse files Browse the repository at this point in the history
Got test reporter and badges working.
  • Loading branch information
MicahGale authored Jan 21, 2024
2 parents cea9453 + b6a28b0 commit 02b9a9c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test package
name: CI testing

on: [push]

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

<img src="https://raw.githubusercontent.com/idaholab/MontePy/develop/graphics/monty.svg" width="180" alt="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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ version = {attr = "montepy.__version__"}

[tool.coverage.run]
source = ["montepy"]
omit = ["montepy/_version.py"]

[tool.coverage.report]
precision = 2
Expand Down

0 comments on commit 02b9a9c

Please sign in to comment.