-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perform tests on windows, macos using github actions (#47)
* 🐴 popagate goodies from pyexcel project to all plugins. pyexcel/pyexcel#234 * 🔥 remove min requirement tests for now * 💚 now test pyexcel_xlsx * ✨ add coverage on github action. pyexcel/pyexcel#238
- Loading branch information
Showing
6 changed files
with
62 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 --with-coverage --cover-package pyexcel_xlsx --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_xlsx | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: ${{ matrix.os }} Python ${{ matrix.python-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pip install flake8 | ||
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs | ||
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
locale.setlocale(locale.LC_ALL, "en_US.UTF-8") | ||
|
||
NAME = "pyexcel-xlsx" | ||
AUTHOR = "chfw" | ||
AUTHOR = "C.W." | ||
VERSION = "0.6.0" | ||
EMAIL = "[email protected]" | ||
LICENSE = "New BSD" | ||
|
@@ -73,13 +73,14 @@ | |
} | ||
# You do not need to read beyond this line | ||
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable) | ||
GS_COMMAND = ("gs pyexcel-xlsx v0.6.0 " + | ||
HERE = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
GS_COMMAND = ("gease pyexcel-xlsx v0.6.0 " + | ||
"Find 0.6.0 in changelog for more details") | ||
NO_GS_MESSAGE = ("Automatic github release is disabled. " + | ||
"Please install gease to enable it.") | ||
UPLOAD_FAILED_MSG = ( | ||
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND) | ||
HERE = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
|
||
class PublishCommand(Command): | ||
|
@@ -125,7 +126,6 @@ def run(self): | |
"publish": PublishCommand | ||
}) | ||
|
||
|
||
def has_gease(): | ||
""" | ||
test if github release command is installed | ||
|