Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Dec 27, 2021
1 parent 971e435 commit 09d124c
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 33 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,34 @@
name: Build

on: [push, pull_request]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.6'
cache: 'pip'
- run: pip install -r requirements.txt
- run: pip install -e .
- run: flake8 kuyruk/
- run: mypy kuyruk/
- run: cp test_config_github_actions.py /tmp/kuyruk_config.py
- uses: mer-team/rabbitmq-mng-action@v1.2
with:
RABBITMQ_TAG: '3-management-alpine'
- run: pytest -v --cov=kuyruk --cov-report xml tests/
- run: coverage combine
- run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo ${{github.ref_name}} > VERSION
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -19,7 +19,7 @@ Kuyruk is a simple and easy way of distributing tasks to run on servers.
It uses `RabbitMQ <http://www.rabbitmq.com>`_ as message broker and
depends on `amqp <http://amqp.readthedocs.org/>`_
which is a pure-Python RabbitMQ client library.
Compatible with Python 3.5+.
Compatible with Python 3.6+.


Where is the documentation?
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Expand Up @@ -14,7 +14,7 @@ Kuyruk is a simple and easy way of distributing tasks to run on servers.
It uses `RabbitMQ <http://www.rabbitmq.com>`_ as message broker and depends on
`amqp <http://amqp.readthedocs.org/>`_
which is a pure-Python RabbitMQ client library.
Compatible with Python 3.5+.
Compatible with Python 3.6+.

All design decisions is based on simplicity.
Speed is not first priority. Kuyruk only supports RabbitMQ and does not plan
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Expand Up @@ -5,3 +5,5 @@ what==0.5.0
psutil==4.4.2
flake8==3.5.0
mypy==0.570
coverage==6.1.2
coveralls==3.3.1
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -7,7 +7,7 @@ max-line-length = 120
exclude = tests/*,docs/*

[mypy]
python_version = 3.5
python_version = 3.6
platform = linux
incremental = True
ignore_missing_imports = True
Expand Down
1 change: 0 additions & 1 deletion setup.py
Expand Up @@ -40,7 +40,6 @@ def read(*fname: str) -> str:
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Object Brokering',
'Topic :: System :: Distributed Computing',
Expand Down
File renamed without changes.

0 comments on commit 09d124c

Please sign in to comment.