This commit is contained in:
Jakub Roztocil 2019-09-10 13:58:05 +02:00
parent 3fa583e591
commit 2bb54da368

View File

@ -3,10 +3,10 @@ name: Python package
on: [push] on: [push]
jobs: jobs:
build: test:
# run core httpie tests everywhere
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
max-parallel: 4
matrix: matrix:
os: [ubuntu-latest, macOS-latest, windows-latest] os: [ubuntu-latest, macOS-latest, windows-latest]
python-version: [3.6, 3.7] python-version: [3.6, 3.7]
@ -16,18 +16,20 @@ jobs:
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: upgrade pip - run: python -m pip install --upgrade pip
run: python -m pip install --upgrade pip - run: pip install --upgrade --editable .
- name: install - run: python setup.py test
run: make install
- name: test test-extras:
run: make test # coverage and extra tests only once
- name: pycodestyle - runs-on: ubuntu-latest
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' strategy:
run: make pycodestyle matrix:
- name: coveralls python-version: [3.7]
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7' - run: make install
run: make coveralls - run: make test
- run: make test-dist
- run: make pycodestyle
- run: make coveralls
env: env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}