Skip to content

Commit c611178

Browse files
authored
windows bulid on github actions (#107)
* ✨ enable github actions for pyexcel-io. pyexcel/pyexcel#238, https://github.com/pyexcel/pyexcel * 🐛 in test. memory map file on windows needs close. * 💚 increase verbosity * 💚 setup utf-8 encoding * 💚 give a line break * 💚 verify the tests on windows * 💚 python 3 need no unicode annotation * 💚 use Finnish world instead of Chinese one for now * 🔥 extra statement had no use * 🔥 remove travis config * 🔥 repalce travis status * ✨ kick start next version * This is an auto-commit, updating project meta data, such as changelog.rst, contributors.rst Co-authored-by: chfw <chfw@users.noreply.github.com>
1 parent 98e0e76 commit c611178

12 files changed

+61
-54
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_io --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_io
29+
- name: Upload coverage
30+
uses: codecov/codecov-action@v1
31+
with:
32+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

.moban.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ configuration:
44
targets:
55
- "docs/source/conf.py": "docs/source/custom_conf.py.jj2"
66
- setup.py: io_setup.py.jj2
7-
- .travis.yml: custom_travis.yml.jj2
87
- README.rst: io_readme.rst.jj2
98
- "docs/source/index.rst": "docs/source/index.rst.jj2"
109
- .gitignore: gitignore.jj2

.travis.yml

-45
This file was deleted.

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ pyexcel-io - Let you focus on data, instead of file formats
88
.. 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-io.svg?branch=master
12-
:target: http://travis-ci.org/pyexcel/pyexcel-io
11+
.. image:: https://github.com/actions/pyexcel/pyexcel-io/workflows/.github/workflows/tests.yml/badge.svg
12+
:target: http://github.com/pyexcel/pyexcel-io
1313

1414
.. image:: https://codecov.io/gh/pyexcel/pyexcel-io/branch/master/graph/badge.svg
1515
:target: https://codecov.io/gh/pyexcel/pyexcel-io

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
copyright = '2015-2020 Onni Software Ltd.'
2727
author = 'C.W.'
2828
# The short X.Y version
29-
version = '0.6.4'
29+
version = '0.6.5'
3030
# The full version, including alpha/beta/rc tags
3131
release = '0.6.4'
3232

docs/source/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
:Source code: http://github.com/pyexcel/pyexcel-io.git
1111
:Issues: http://github.com/pyexcel/pyexcel-io/issues
1212
:License: New BSD License
13+
:Development: |release|
1314
:Released: |version|
1415
:Generated: |today|
1516

docs/source/plaincsv.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Here is an example to write a sentence of "Shui Dial Getou"[#f2] into a csv file
153153
154154
.. code-block:: python
155155
156-
>>> content = [[u'人有悲歡離合', u'月有陰晴圓缺']]
156+
>>> content = [['löyly', 'löyly']]
157157
>>> test_file = "test-utf8-BOM.csv"
158158
>>> save_data(test_file, content, encoding="utf-8-sig", lineterminator="\n")
159159

pyexcel-io.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ overrides: "pyexcel.yaml"
22
project: "pyexcel-io"
33
name: pyexcel-io
44
nick_name: io
5-
version: 0.6.4
6-
current_version: 0.6.4
5+
version: 0.6.5
6+
current_version: 0.6.5
77
release: 0.6.4
88
copyright_year: 2015-2020
99
moban_command: false

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
NAME = "pyexcel-io"
3434
AUTHOR = "C.W."
35-
VERSION = "0.6.4"
35+
VERSION = "0.6.5"
3636
EMAIL = "info@pyexcel.org"
3737
LICENSE = "New BSD"
3838
DESCRIPTION = (

tests/test_issues.py

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def check_mmap_encoding(encoding):
103103
memory_mapped_file = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
104104
data = get_data(memory_mapped_file, file_type="csv", encoding=encoding)
105105
eq_(data["csv"], content)
106+
memory_mapped_file.close()
106107

107108
os.unlink(test_file)
108109

0 commit comments

Comments
 (0)