Skip to content

Commit

Permalink
Add PR Coverage Comment (#4)
Browse files Browse the repository at this point in the history
* trying out pytest coverage report

* capitalization

* trying out codecov.io reporting

* add separate report for os and python version

* fix output filename

* remove broken code

* fix report location

* another fix for report location

* another fix for report location

* another fix for report location

* another fix for report location

* add coverage badge
  • Loading branch information
mikelane authored Jan 31, 2021
1 parent ceac802 commit 30ecd07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Reddit-Get Continuous Integration
name: Reddit-Get Integration

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

Expand Down Expand Up @@ -49,4 +51,11 @@ jobs:
- name: Install Poetry Dependencies
run: poetry install -vvv
- name: Run Pytest with Black, isort, and coverage
run: poetry run pytest -vvv --black --isort --force-sugar --tb=native --cov=reddit_get --cov-fail-under=90 --numprocesses=auto --color=yes --code-highlight=yes --durations=10
run: poetry run pytest -vvv --black --isort --force-sugar --tb=native --cov=reddit_get --cov-fail-under=90 --cov-report=xml:docs/coverage/report.xml --numprocesses=auto --color=yes --code-highlight=yes --durations=10
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: codecov-umbrella
fail_ci_if_error: true
path_to_write_report: .docs/coverage/report.xml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Reddit Get
![Continuous Integration](https://github.com/mikelane/reddit-get/workflows/Reddit-Get%20Continuous%20Integration/badge.svg)
[![codecov](https://codecov.io/gh/mikelane/reddit-get/branch/main/graph/badge.svg)](https://codecov.io/gh/mikelane/reddit-get)

This is a python CLI that will pull posts from Reddit. In order to use this CLI, you'll need to set up a
Reddit app of your own so that you can authenticate into Reddit with your own credentials. Never fear,
Expand Down

0 comments on commit 30ecd07

Please sign in to comment.