Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PR Coverage Comment #4

Merged
merged 12 commits into from
Jan 31, 2021
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