Skip to content

Commit

Permalink
Feat: Add GitHub actions supports (pyecharts#1931)
Browse files Browse the repository at this point in the history
* Update: 完善 github actions

* Update: 暂时仅支持至 python3.9
  • Loading branch information
chenjiandongx authored Nov 15, 2021
1 parent 41def33 commit a109eb3
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 49 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.6', '3.7', '3.8', '3.9']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -18,7 +19,11 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r test/requirements.txt
- name: Lint with flake8
- name: Run unit test
run: |
python setup.py install
bash test.sh
python test.py
- name: Codecov
run: |
cd test
codecov
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

18 changes: 0 additions & 18 deletions appveyor.yml

This file was deleted.

2 changes: 0 additions & 2 deletions make.bat

This file was deleted.

5 changes: 4 additions & 1 deletion pyecharts/render/engine.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import os
from collections import Iterable
try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable

from jinja2 import Environment

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def run(self):
zip_safe=False,
include_package_data=True,
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
Expand All @@ -92,6 +92,7 @@ def run(self):
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries",
],
cmdclass={"upload": UploadCommand},
Expand Down
4 changes: 4 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import os

os.system("nosetests --with-coverage --cover-package pyecharts --cover-package")
os.system("flake8 --exclude build --max-line-length 89 --ignore=F401")
2 changes: 0 additions & 2 deletions test.sh

This file was deleted.

0 comments on commit a109eb3

Please sign in to comment.