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

41 lines
1022 B
YAML
Raw Normal View History

2019-09-10 14:14:39 +02:00
name: Build
2019-09-10 11:56:55 +02:00
on: [push]
jobs:
2019-09-10 13:58:05 +02:00
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 13:58:05 +02:00
strategy:
matrix:
python-version: [3.7]
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:
python-version: ${{ matrix.python-version }}
- run: make install
- run: make test
- run: make test-dist
- run: make pycodestyle
- run: make coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
2019-09-10 14:05:40 +02:00
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