📚 align ci system github does latest and travis does min
This commit is contained in:
parent
725aa26ed6
commit
2912ca6cb3
|
@ -0,0 +1,29 @@
|
||||||
|
name: Python package
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
max-parallel: 4
|
||||||
|
matrix:
|
||||||
|
python-version: [3.6, 3.7, 3.8]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
- name: Lint with flake8
|
||||||
|
run: |
|
||||||
|
make install_test format git-diff-check lint
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
make
|
|
@ -0,0 +1,10 @@
|
||||||
|
[settings]
|
||||||
|
line_length=79
|
||||||
|
known_first_party=lml, pyexcel
|
||||||
|
known_third_party=nose
|
||||||
|
indent=' '
|
||||||
|
multi_line_output=3
|
||||||
|
length_sort=1
|
||||||
|
default_section=FIRSTPARTY
|
||||||
|
no_lines_before=LOCALFOLDER
|
||||||
|
sections=FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,LOCALFOLDER
|
|
@ -1,9 +1,7 @@
|
||||||
{% extends "travis.yml.jj2" %}
|
{% extends "travis.yml.jj2" %}
|
||||||
{%block extra_matrix %}
|
{%block extra_matrix %}
|
||||||
matrix:
|
env:
|
||||||
include:
|
- MINREQ=1
|
||||||
- python: 3.6
|
|
||||||
env: MINREQ=1
|
|
||||||
{%endblock%}
|
{%endblock%}
|
||||||
{%block custom_python_versions%}
|
{%block custom_python_versions%}
|
||||||
python:
|
python:
|
||||||
|
|
|
@ -7,10 +7,8 @@ python:
|
||||||
- 3.8
|
- 3.8
|
||||||
- 3.7
|
- 3.7
|
||||||
- 3.6
|
- 3.6
|
||||||
matrix:
|
env:
|
||||||
include:
|
- MINREQ=1
|
||||||
- python: 3.6
|
|
||||||
env: MINREQ=1
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- lint
|
- lint
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -3,6 +3,9 @@ all: test
|
||||||
test:
|
test:
|
||||||
bash test.sh
|
bash test.sh
|
||||||
|
|
||||||
|
install_test:
|
||||||
|
pip install -r tests/requirements.txt
|
||||||
|
|
||||||
document:
|
document:
|
||||||
sphinx-autogen -o docs/source/generated/ docs/source/*.rst
|
sphinx-autogen -o docs/source/generated/ docs/source/*.rst
|
||||||
sphinx-build -b html docs/source/ docs/build/
|
sphinx-build -b html docs/source/ docs/build/
|
||||||
|
@ -15,4 +18,6 @@ format:
|
||||||
lint:
|
lint:
|
||||||
bash lint.sh
|
bash lint.sh
|
||||||
|
|
||||||
|
git-diff-check:
|
||||||
|
git diff --exit-code
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue