2019-09-10 14:14:39 +02:00
|
|
|
name: Build
|
2019-09-10 11:56:55 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2019-09-10 14:18:06 +02:00
|
|
|
extras:
|
2019-09-10 14:05:40 +02:00
|
|
|
# Run coverage and extra tests only once
|
2019-09-10 13:59:43 +02:00
|
|
|
runs-on: ubuntu-latest
|
2019-09-10 14:00:28 +02:00
|
|
|
steps:
|
2019-09-10 14:02:11 +02:00
|
|
|
- uses: actions/checkout@v1
|
2019-09-10 14:14:39 +02:00
|
|
|
- uses: actions/setup-python@v1
|
2019-09-10 14:02:11 +02:00
|
|
|
with:
|
2019-09-10 14:40:34 +02:00
|
|
|
python-version: 3.7
|
2019-09-28 10:36:12 +02:00
|
|
|
- run: pip install --upgrade pip
|
2019-09-10 14:02:11 +02:00
|
|
|
- run: make install
|
|
|
|
- run: make pycodestyle
|
2019-09-18 11:14:34 +02:00
|
|
|
- run: make test
|
2019-09-18 11:09:46 +02:00
|
|
|
- run: make codecov
|
2019-09-10 14:02:11 +02:00
|
|
|
env:
|
2019-09-18 11:09:46 +02:00
|
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_REPO_TOKEN }}
|
2019-09-18 11:16:19 +02:00
|
|
|
- run: make test-dist
|
2019-09-10 14:18:06 +02:00
|
|
|
test:
|
2019-09-10 14:14:39 +02:00
|
|
|
# Run core HTTPie tests everywhere
|
2019-09-10 14:05:40 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
|
|
python-version: [3.6, 3.7]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2019-09-10 14:14:39 +02:00
|
|
|
- uses: actions/setup-python@v1
|
2019-09-10 14:05:40 +02:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- run: python -m pip install --upgrade pip
|
|
|
|
- run: pip install --upgrade --editable .
|
|
|
|
- run: python setup.py test
|