Skip to content

Commit 0980851

Browse files
committed
🔥 remove travis build from ci. credit goes to #234
1 parent f352fa1 commit 0980851

File tree

10 files changed

+63
-78
lines changed

10 files changed

+63
-78
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ With your PR, here is a check list:
44
- [ ] Has all code lines tested?
55
- [ ] Has `make format` been run?
66
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst)
7-
- [ ] Passes all Travis CI builds
87
- [ ] Has fair amount of documentation if your change is complex
98
- [ ] Agree on NEW BSD License for your contribution

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
name: lint code
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: 3.8
15+
- name: lint
16+
run: |
17+
pip install flake8
18+
pip install -r tests/requirements.txt
19+
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long .
20+
python setup.py checkdocs

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: run_tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
python-version: [3.6, 3.7, 3.8, 3.9]
11+
os: [macOs-latest, ubuntu-latest, windows-latest]
12+
13+
runs-on: ${{ matrix.os }}
14+
name: run tests
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: install
22+
run: |
23+
pip install -r requirements.txt
24+
pip install -r tests/requirements.txt
25+
- name: test
26+
run: |
27+
pip freeze
28+
nosetests --verbosity=3 --with-coverage --cover-package pyexcel_pdfr --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_pdfr
29+
- name: Upload coverage
30+
uses: codecov/codecov-action@v1
31+
with:
32+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

.moban.d/custom_travis.yml.jj2

Lines changed: 0 additions & 8 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ pyexcel-pdfr - Let you focus on data, instead of file formats
55
.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png
66
:target: https://www.patreon.com/chfw
77

8-
.. image:: https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg
8+
.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel-mobans/master/images/awesome-badge.svg
99
:target: https://awesome-python.com/#specific-formats-processing
1010

11-
.. image:: https://travis-ci.org/pyexcel/pyexcel-pdfr.svg?branch=master
12-
:target: http://travis-ci.org/pyexcel/pyexcel-pdfr
11+
.. image:: https://github.com/pyexcel/pyexcel-pdfr/workflows/run_tests/badge.svg
12+
:target: http://github.com/pyexcel/pyexcel-pdfr/actions
1313

1414
.. image:: https://codecov.io/gh/pyexcel/pyexcel-pdfr/branch/master/graph/badge.svg
1515
:target: https://codecov.io/gh/pyexcel/pyexcel-pdfr
@@ -19,7 +19,7 @@ pyexcel-pdfr - Let you focus on data, instead of file formats
1919

2020

2121
.. image:: https://pepy.tech/badge/pyexcel-pdfr/month
22-
:target: https://pepy.tech/project/pyexcel-pdfr/month
22+
:target: https://pepy.tech/project/pyexcel-pdfr
2323

2424

2525
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
project = 'pyexcel-pdfr'
2525
copyright = '2015-2020 Onni Software Ltd.'
26-
author = 'chfw'
26+
author = 'C.W.'
2727
# The short X.Y version
2828
version = '0.6.0'
2929
# The full version, including alpha/beta/rc tags

lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pip install flake8
2-
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs
2+
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs

pyexcel_pdfr/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__version__ = '0.6.0'
2-
__author__ = 'chfw'
2+
__author__ = 'C.W.'

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
3232

3333
NAME = "pyexcel-pdfr"
34-
AUTHOR = "chfw"
34+
AUTHOR = "C.W."
3535
VERSION = "0.6.0"
3636
3737
LICENSE = "New BSD"
@@ -72,13 +72,14 @@
7272
}
7373
# You do not need to read beyond this line
7474
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
75-
GS_COMMAND = ("gs pyexcel-pdfr v0.6.0 " +
75+
HERE = os.path.abspath(os.path.dirname(__file__))
76+
77+
GS_COMMAND = ("gease pyexcel-pdfr v0.6.0 " +
7678
"Find 0.6.0 in changelog for more details")
7779
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
7880
"Please install gease to enable it.")
7981
UPLOAD_FAILED_MSG = (
8082
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND)
81-
HERE = os.path.abspath(os.path.dirname(__file__))
8283

8384

8485
class PublishCommand(Command):
@@ -124,7 +125,6 @@ def run(self):
124125
"publish": PublishCommand
125126
})
126127

127-
128128
def has_gease():
129129
"""
130130
test if github release command is installed

0 commit comments

Comments
 (0)