httpie-cli/.github/workflows/pythonpackage.yml

38 lines
931 B
YAML
Raw Normal View History

2019-09-10 11:56:55 +02:00
name: Python package
on: [push]
jobs:
2019-09-10 13:59:43 +02:00
name: tests
2019-09-10 13:58:05 +02:00
test:
# run core httpie tests everywhere
2019-09-10 12:46:34 +02:00
runs-on: ${{ matrix.os }}
2019-09-10 11:56:55 +02:00
strategy:
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:58:05 +02:00
- run: python -m pip install --upgrade pip
- run: pip install --upgrade --editable .
- run: python setup.py test
test-extras:
# coverage and extra tests only once
2019-09-10 13:59:43 +02:00
runs-on: ubuntu-latest
2019-09-10 13:58:05 +02:00
strategy:
matrix:
python-version: [3.7]
2019-09-10 14:00:28 +02:00
steps:
2019-09-10 13:58:05 +02:00
- run: make install
- run: make test
- run: make test-dist
- run: make pycodestyle
- run: make coveralls
2019-09-10 13:39:41 +02:00
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}