2019-09-10 14:14:39 +02:00
|
|
|
name: Build
|
2020-04-13 17:24:18 +02:00
|
|
|
on: [push, pull_request]
|
2019-09-10 11:56:55 +02:00
|
|
|
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:57:21 +01:00
|
|
|
- run: pip install --upgrade pip
|
2019-09-10 14:02:11 +02:00
|
|
|
- run: make install
|
|
|
|
- run: make pycodestyle
|
2019-12-04 17:49:07 +01:00
|
|
|
- run: make test-cover
|
|
|
|
- run: make codecov-upload
|
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-12-02 20:57:21 +01:00
|
|
|
exclude:
|
|
|
|
- os: windows-latest
|
|
|
|
python-version: 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:57:21 +01:00
|
|
|
- run: python -m pip install --upgrade pip
|
2019-09-10 14:05:40 +02:00
|
|
|
- run: pip install --upgrade --editable .
|
|
|
|
- run: python setup.py test
|