diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4f5a2f5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-20.04 + strategy: + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, pypy-2.7, pypy-3.7] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -r requirements.dev.txt + - name: Run tests + run: | + nosetests --with-coverage --cover-package gixy -v + - name: Run flake8 + run: | + flake8 --max-line-length=120 setup.py gixy diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7840a77..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: python -dist: xenial -sudo: false -python: - - "2.7" - - "3.5" - - "3.6" - - "3.7" - - "pypy" - - "pypy3" - -install: - - pip install -r requirements.txt - - pip install -r requirements.dev.txt - -script: - - nosetests --with-coverage --cover-package gixy -v - - if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then flake8 --max-line-length=120 setup.py gixy; fi diff --git a/README.md b/README.md index f416832..120a31b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ GIXY ==== [![Mozilla Public License 2.0](https://img.shields.io/github/license/yandex/gixy.svg?style=flat-square)](https://github.com/yandex/gixy/blob/master/LICENSE) -[![Build Status](https://img.shields.io/travis/yandex/gixy.svg?style=flat-square)](https://travis-ci.org/yandex/gixy) +[![CI](https://github.com/yandex/gixy/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/yandex/gixy/actions/workflows/ci.yml) [![Your feedback is greatly appreciated](https://img.shields.io/maintenance/yes/2019.svg?style=flat-square)](https://github.com/yandex/gixy/issues/new) [![GitHub issues](https://img.shields.io/github/issues/yandex/gixy.svg?style=flat-square)](https://github.com/yandex/gixy/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/yandex/gixy.svg?style=flat-square)](https://github.com/yandex/gixy/pulls)