docs: fixing README.md build status image (#151)

Migrate to GitHub Actions. Closes #151.
pull/152/head
George Spesivtsev 2025-09-25 22:26:37 +03:00
parent 6f68624a75
commit 2fda6d2911
3 changed files with 32 additions and 19 deletions

31
.github/workflows/ci.yml vendored Normal file
View File

@ -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

View File

@ -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

View File

@ -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)