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

Update codecov integration #17

Merged
merged 3 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading