mirror of https://github.com/yandex/gixy
docs: fixing README.md build status image (#151)
Migrate to GitHub Actions. Closes #151.pull/152/head
parent
6f68624a75
commit
2fda6d2911
|
@ -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
|
18
.travis.yml
18
.travis.yml
|
@ -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
|
|
|
@ -1,7 +1,7 @@
|
||||||
GIXY
|
GIXY
|
||||||
====
|
====
|
||||||
[](https://github.com/yandex/gixy/blob/master/LICENSE)
|
[](https://github.com/yandex/gixy/blob/master/LICENSE)
|
||||||
[](https://travis-ci.org/yandex/gixy)
|
[](https://github.com/yandex/gixy/actions/workflows/ci.yml)
|
||||||
[](https://github.com/yandex/gixy/issues/new)
|
[](https://github.com/yandex/gixy/issues/new)
|
||||||
[](https://github.com/yandex/gixy/issues)
|
[](https://github.com/yandex/gixy/issues)
|
||||||
[](https://github.com/yandex/gixy/pulls)
|
[](https://github.com/yandex/gixy/pulls)
|
||||||
|
|
Loading…
Reference in New Issue