-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding python 3.8 * move to github actions * fix tests * fixing python 3.8 tests * fix formatting * fix readme
- Loading branch information
1 parent
532ed21
commit 3fec03c
Showing
16 changed files
with
196 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- '**' | ||
pull_request: {} | ||
|
||
jobs: | ||
test: | ||
name: test py${{ matrix.python-version }} on ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu] | ||
python-version: ['3.6', '3.7', '3.8'] | ||
|
||
env: | ||
PYTHON: ${{ matrix.python-version }} | ||
OS: ${{ matrix.os }} | ||
|
||
runs-on: ${{ format('{0}-latest', matrix.os) }} | ||
|
||
services: | ||
redis: | ||
image: redis:5 | ||
ports: | ||
- 6379:6379 | ||
options: --entrypoint redis-server | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: set up python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: install dependencies | ||
run: | | ||
make install | ||
pip freeze | ||
- name: lint | ||
run: make lint | ||
|
||
- name: test | ||
run: | | ||
make test | ||
coverage xml | ||
- uses: samuelcolvin/codecov-action@env-vars | ||
with: | ||
file: ./coverage.xml | ||
env_vars: PYTHON,OS | ||
|
||
deploy: | ||
name: Deploy | ||
needs: test | ||
if: "success() && startsWith(github.ref, 'refs/tags/')" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: set up python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: install | ||
run: | | ||
make install | ||
pip install -U wheel twine | ||
- name: build | ||
run: python setup.py sdist bdist_wheel | ||
|
||
- run: twine check dist/* | ||
|
||
- name: check tag | ||
run: PACKAGE=arq python <(curl -Ls https://git.io/JvQsH) | ||
|
||
- name: upload to pypi | ||
run: twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.pypi_token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/env/ | ||
/env36/ | ||
/env*/ | ||
/.idea | ||
__pycache__/ | ||
*.py[cod] | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# arq | ||
|
||
[![CI](https://github.com/samuelcolvin/arq/workflows/CI/badge.svg?event=push)](https://github.com/samuelcolvin/arq/actions?query=event%3Apush+branch%3Amaster+workflow%3ACI) | ||
[![Coverage](https://codecov.io/gh/samuelcolvin/arq/branch/master/graph/badge.svg)](https://codecov.io/gh/samuelcolvin/arq) | ||
[![pypi](https://img.shields.io/pypi/v/arq.svg)](https://pypi.python.org/pypi/arq) | ||
[![versions](https://img.shields.io/pypi/pyversions/arq.svg)](https://github.com/samuelcolvin/arq) | ||
[![license](https://img.shields.io/github/license/samuelcolvin/arq.svg)](https://github.com/samuelcolvin/arq/blob/master/LICENSE) | ||
|
||
Job queues in python with asyncio and redis. | ||
|
||
See [documentation](https://arq-docs.helpmanual.io/) for more details. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from distutils.version import StrictVersion | ||
__all__ = ('VERSION',) | ||
|
||
__all__ = ['VERSION'] | ||
|
||
VERSION = StrictVersion('0.18.4') | ||
VERSION = '0.18.5a1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
black==19.3b0 | ||
coverage==4.5.3 | ||
docutils==0.14 | ||
flake8==3.7.7 | ||
isort==4.3.17 | ||
black==19.10b0 | ||
coverage==5.1 | ||
flake8==3.7.9 | ||
flake8-quotes==3 | ||
isort==4.3.21 | ||
msgpack==0.6.1 | ||
pycodestyle==2.5.0 | ||
pyflakes==2.1.1 | ||
pytest==4.4.1 | ||
pytest==5.3.5 | ||
pytest-aiohttp==0.3.0 | ||
pytest-cov==2.6.1 | ||
pytest-mock==1.10.4 | ||
pytest-cov==2.8.1 | ||
pytest-mock==3 | ||
pytest-sugar==0.9.2 | ||
pytest-timeout==1.3.3 | ||
pytest-toolbox==0.4 | ||
msgpack==0.6.1 | ||
twine==3.1.1 |
Oops, something went wrong.