Skip to content

Commit

Permalink
Remove travis integration and add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
drgarcia1986 committed Oct 26, 2021
1 parent b487a53 commit 8e1729b
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 42 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Python package

on:
push:
branches:
- main
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
services:
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
memcached:
image: memcached
ports:
- 11211:11211
consul:
image: consul:1.6.2
env:
CONSUL_BIND_INTERFACE: eth0
ports:
- 8400:8400/tcp
- 8500:8500/tcp
- 8600:53/udp

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
make requirements
pip install coveralls
- name: Run lint
run: |
make isort-check
- name: Run tests
run: |
make test
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

0 comments on commit 8e1729b

Please sign in to comment.