Skip to content

Commit 661d4f0

Browse files
committed
🔥 remove travis build from ci. credit goes to #234
1 parent ebb9c2f commit 661d4f0

File tree

10 files changed

+64
-81
lines changed

10 files changed

+64
-81
lines changed

.github/PULL_REQUEST_TEMPLATE.md

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

+20
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

+32
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_ods --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_ods
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

-13
This file was deleted.

.moban.yml

-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ targets:
55
- README.rst: custom_README.rst.jj2
66
- setup.py: custom_setup.py.jj2
77
- "docs/source/conf.py": "docs/source/conf.py.jj2"
8-
- .travis.yml: custom_travis.yml.jj2
98
- .gitignore: gitignore.jj2
109
- MANIFEST.in: MANIFEST.in.jj2

.travis.yml

-56
This file was deleted.

README.rst

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ pyexcel-ods - Let you focus on data, instead of ods format
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-ods.svg?branch=master
12-
:target: http://travis-ci.org/pyexcel/pyexcel-ods
11+
.. image:: https://github.com/pyexcel/pyexcel-ods/workflows/run_tests/badge.svg
12+
:target: http://github.com/pyexcel/pyexcel-ods/actions
1313

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

2020

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

2424

2525
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
@@ -61,6 +61,8 @@ Known constraints
6161

6262
Fonts, colors and charts are not supported.
6363

64+
Nor to read password protected xls, xlsx and ods files.
65+
6466
Installation
6567
================================================================================
6668

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
project = 'pyexcel-ods'
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

+1-1
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

setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
2929

3030
NAME = "pyexcel-ods"
31-
AUTHOR = "chfw"
31+
AUTHOR = "C.W."
3232
VERSION = "0.6.0"
3333
3434
LICENSE = "New BSD"
@@ -70,13 +70,14 @@
7070
}
7171
# You do not need to read beyond this line
7272
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
73-
GS_COMMAND = ("gs pyexcel-ods v0.6.0 " +
73+
HERE = os.path.abspath(os.path.dirname(__file__))
74+
75+
GS_COMMAND = ("gease pyexcel-ods v0.6.0 " +
7476
"Find 0.6.0 in changelog for more details")
7577
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
7678
"Please install gease to enable it.")
7779
UPLOAD_FAILED_MSG = (
7880
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND)
79-
HERE = os.path.abspath(os.path.dirname(__file__))
8081

8182

8283
class PublishCommand(Command):
@@ -122,7 +123,6 @@ def run(self):
122123
"publish": PublishCommand
123124
})
124125

125-
126126
def has_gease():
127127
"""
128128
test if github release command is installed

0 commit comments

Comments
 (0)