🔥 remove travis build from ci. credit goes to #234

This commit is contained in:
chfw 2020-11-28 22:31:59 +00:00
parent dcabf0ee05
commit a31308d8c3
7 changed files with 55 additions and 56 deletions

View File

@ -4,6 +4,5 @@ With your PR, here is a check list:
- [ ] Has all code lines tested?
- [ ] Has `make format` been run?
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst)
- [ ] Passes all Travis CI builds
- [ ] Has fair amount of documentation if your change is complex
- [ ] Agree on NEW BSD License for your contribution

20
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
name: lint code
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: lint
run: |
pip install flake8
pip install -r tests/requirements.txt
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long .
python setup.py checkdocs

32
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: run_tests
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [macOs-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: run tests
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: install
run: |
pip install -r requirements.txt
pip install -r tests/requirements.txt
- name: test
run: |
pip freeze
nosetests --verbosity=3 --with-coverage --cover-package pyexcel_xls --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_xls
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

View File

@ -1,8 +0,0 @@
{% extends "travis.yml.jj2" %}
{%block custom_python_versions%}
python:
- 3.8
- 3.7
- 3.6
{%endblock%}

View File

@ -5,7 +5,6 @@ targets:
- README.rst: custom_README.rst.jj2
- setup.py: custom_setup.py.jj2
- "docs/source/conf.py": "docs/source/conf.py.jj2"
- .travis.yml: xls_travis.yml.jj2
- .gitignore: gitignore.jj2
- MANIFEST.in: MANIFEST.in.jj2
- "tests/requirements.txt": "tests/custom_requirements.txt.jj2"

View File

@ -1,43 +0,0 @@
sudo: false
dist: xenial
language: python
notifications:
email: false
python:
- 3.8
- 3.7
- 3.6
stages:
- lint
- test
.lint: &lint
git:
submodules: false
python: 3.6
env:
- MINREQ=0
stage: lint
script: make lint
jobs:
include:
- *moban
- *lint
stage: test
before_install:
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
mv min_requirements.txt requirements.txt ;
fi
- test ! -f rnd_requirements.txt ||
pip install --no-deps -r rnd_requirements.txt
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
- pip install -r tests/requirements.txt
script:
- make test
after_success:
codecov

View File

@ -8,8 +8,8 @@ pyexcel-xls - Let you focus on data, instead of xls format
.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel-mobans/master/images/awesome-badge.svg
:target: https://awesome-python.com/#specific-formats-processing
.. image:: https://travis-ci.org/pyexcel/pyexcel-xls.svg?branch=master
:target: http://travis-ci.org/pyexcel/pyexcel-xls
.. image:: https://github.com/pyexcel/pyexcel-xls/workflows/run_tests/badge.svg
:target: http://github.com/pyexcel/pyexcel-xls/actions
.. image:: https://codecov.io/gh/pyexcel/pyexcel-xls/branch/master/graph/badge.svg
:target: https://codecov.io/gh/pyexcel/pyexcel-xls
@ -21,7 +21,7 @@ pyexcel-xls - Let you focus on data, instead of xls format
:target: https://anaconda.org/conda-forge/pyexcel-xls
.. image:: https://pepy.tech/badge/pyexcel-xls/month
:target: https://pepy.tech/project/pyexcel-xls/month
:target: https://pepy.tech/project/pyexcel-xls
.. image:: https://anaconda.org/conda-forge/pyexcel-xls/badges/downloads.svg
:target: https://anaconda.org/conda-forge/pyexcel-xls