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

35 lines
990 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 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-12-02 20:39:00 +01:00
python-version: 3.8
2019-12-02 20:47:09 +01:00
- run: pip install --upgrade pip setuptools
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]
2019-12-02 20:39:00 +01:00
python-version: [3.6, 3.7, 3.8]
2019-09-10 14:05:40 +02:00
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 }}
2019-12-02 20:47:09 +01:00
- run: python -m pip install --upgrade pip setuptools
2019-09-10 14:05:40 +02:00
- run: pip install --upgrade --editable .
- run: python setup.py test