Skip to content

Commit 284327d

Browse files
committed
Add code coverage
1 parent 922f3fe commit 284327d

5 files changed

Lines changed: 179 additions & 59 deletions

File tree

.github/workflows/doctests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- '3.9'
2121
- '3.10'
2222

23-
name: Python ${{ matrix.python_version }} on ${{ matrix.os }}
23+
name: Python ${{ matrix.python_version }}
2424
steps:
2525
- uses: actions/checkout@v2
2626

@@ -35,6 +35,15 @@ jobs:
3535
python3 -mpip install -U pip pipenv
3636
pipenv sync --dev
3737
38-
- name: Run tests
38+
- name: Run tests (with coverage)
39+
if: ${{ matrix.python_version == '3.10' }}
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
run: |
43+
pipenv run coverage run tests.py
44+
pipenv run coveralls --service=github
45+
46+
- name: Run tests (without coverage)
47+
if: ${{ matrix.python_version != '3.10' }}
3948
run: |
4049
make tests

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
__pycache__
22
dist
33
*.egg-info
4+
.coverage

Pipfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ name = "pypi"
77

88
[dev-packages]
99
black = "*"
10+
coveralls = "*"
11+
coverage = "*"
1012

1113
[requires]
1214
python_version = "3"

Pipfile.lock

Lines changed: 163 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Aurornis - The Command Line Program Test Helper
22

3+
[![Coverage Status](https://coveralls.io/repos/github/Deuchnord/Aurornis/badge.svg?branch=main)](https://coveralls.io/github/Deuchnord/Aurornis?branch=main)
4+
35
Aurornis is a small, yet powerful library designed to help testing command line programs.
46
The name is a reference to the [_aurornis xui_](https://en.wikipedia.org/wiki/Aurornis), a prehistoric bird that lived 10 millions ago.
57

0 commit comments

Comments
 (0)