mirror of
https://github.com/httpie/cli.git
synced 2024-11-24 08:22:22 +02:00
worflow
This commit is contained in:
parent
3fa583e591
commit
2bb54da368
32
.github/workflows/pythonpackage.yml
vendored
32
.github/workflows/pythonpackage.yml
vendored
@ -3,10 +3,10 @@ name: Python package
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
test:
|
||||
# run core httpie tests everywhere
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
max-parallel: 4
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||
python-version: [3.6, 3.7]
|
||||
@ -16,18 +16,20 @@ jobs:
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: upgrade pip
|
||||
run: python -m pip install --upgrade pip
|
||||
- name: install
|
||||
run: make install
|
||||
- name: test
|
||||
run: make test
|
||||
- name: pycodestyle
|
||||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7'
|
||||
run: make pycodestyle
|
||||
- name: coveralls
|
||||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7'
|
||||
run: make coveralls
|
||||
- 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
|
||||
- runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.7]
|
||||
- run: make install
|
||||
- run: make test
|
||||
- run: make test-dist
|
||||
- run: make pycodestyle
|
||||
- run: make coveralls
|
||||
env:
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user