|
|
|
@ -0,0 +1,26 @@ |
|
|
|
name: Test package |
|
|
|
|
|
|
|
on: [push] |
|
|
|
|
|
|
|
jobs: |
|
|
|
build: |
|
|
|
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
python-version: [2.7, 3.5, 3.6, 3.7, 3.8] |
|
|
|
|
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
- name: Set up Python ${{ matrix.python-version }} |
|
|
|
uses: actions/setup-python@v1 |
|
|
|
with: |
|
|
|
python-version: ${{ matrix.python-version }} |
|
|
|
- name: Install dependencies |
|
|
|
run: | |
|
|
|
python setup.py build_ext --force |
|
|
|
python setup.py develop |
|
|
|
- name: Lint with black |
|
|
|
run: | |
|
|
|
pip install black==19.10b0 |
|
|
|
black --check **/*.py |