Skip to content

Commit

Permalink
Update codecov integration (#17)
Browse files Browse the repository at this point in the history
* Update codecov integration

* Update setup pypandoc

* INstall pandoc and pypandoc
  • Loading branch information
gabfl committed May 9, 2023
1 parent 3b08a47 commit 3cfbdd2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
uses: zcong1993/setup-timezone@master
with:
timezone: EST
- name: Install deb dependencies
run: |
sudo apt update
sudo apt install pandoc
- name: Install dependencies
run: |
pip install pycodestyle codecov pytest
pip install pycodestyle coverage pytest pypandoc
python setup.py install
- name: Run pycodestyle
run: |
Expand All @@ -41,6 +45,8 @@ jobs:
- name: Combine coverage report
run: |
coverage combine
- name: Report to codecov
- name: Upload coverage reports to Codecov
run: |
codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}
8 changes: 2 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
from setuptools import setup

try:
import pypandoc
long_description = pypandoc.convert_file('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
import pypandoc

setup(
name='rpq',
version='2.2',
description='Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description=long_description,
long_description=pypandoc.convert_file('README.md', 'rst'),
author='Gabriel Bordeaux',
author_email='pypi@gab.lc',
url='https://github.com/gabfl/redis-priority-queue',
Expand Down

0 comments on commit 3cfbdd2

Please sign in to comment.