2019-09-10 11:56:55 +02:00
|
|
|
name: Python package
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2019-09-10 12:46:34 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
2019-09-10 11:56:55 +02:00
|
|
|
strategy:
|
|
|
|
max-parallel: 4
|
|
|
|
matrix:
|
2019-09-10 12:49:46 +02:00
|
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
2019-09-10 12:46:34 +02:00
|
|
|
python-version: [3.6, 3.7]
|
2019-09-10 11:56:55 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
2019-09-10 13:10:29 +02:00
|
|
|
- name: upgrade pip
|
|
|
|
run: python -m pip install --upgrade pip
|
|
|
|
- name: install
|
|
|
|
run: make install
|
2019-09-10 12:49:46 +02:00
|
|
|
- name: test
|
|
|
|
run: make test
|
2019-09-10 13:10:29 +02:00
|
|
|
- name: pycodestyle
|
|
|
|
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7'
|
|
|
|
run: make pycodestyle
|
|
|
|
- name: coveralls
|
|
|
|
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7'
|
|
|
|
run: make coveralls
|
2019-09-10 13:20:09 +02:00
|
|
|
env:
|
|
|
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|