1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00
This commit is contained in:
Jakub Roztocil 2019-09-10 13:10:29 +02:00
parent 7f80408945
commit 2ffd8d9d9b
2 changed files with 15 additions and 8 deletions

View File

@ -17,8 +17,15 @@ jobs:
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install dependencies - name: upgrade pip
run: | run: python -m pip install --upgrade pip
python -m pip install --upgrade pip - name: install
run: make install
- name: test - name: test
run: make 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

View File

@ -8,10 +8,10 @@ TAG="\n\n\033[0;32m\#\#\# "
END=" \#\#\# \033[0m\n" END=" \#\#\# \033[0m\n"
all: test all: uninstall-httpie install test
init: uninstall-httpie install:
@echo $(TAG)Installing dev requirements$(END) @echo $(TAG)Installing dev requirements$(END)
pip install --upgrade -r $(REQUIREMENTS) pip install --upgrade -r $(REQUIREMENTS)
@ -32,14 +32,14 @@ clean:
############################################################################### ###############################################################################
test: init test:
@echo $(TAG)Running tests on the current Python interpreter with coverage $(END) @echo $(TAG)Running tests on the current Python interpreter with coverage $(END)
py.test --cov ./httpie --cov ./tests --doctest-modules --verbose ./httpie ./tests py.test --cov ./httpie --cov ./tests --doctest-modules --verbose ./httpie ./tests
@echo @echo
# test-all is meant to test everything — even this Makefile # test-all is meant to test everything — even this Makefile
test-all: uninstall-all clean init test test-tox test-dist pycodestyle test-all: uninstall-all clean install test test-tox test-dist pycodestyle
@echo @echo
@ -47,7 +47,7 @@ test-dist: test-sdist test-bdist-wheel
@echo @echo
test-tox: init test-tox: uninstall-httpie install
@echo $(TAG)Running tests on all Pythons via Tox$(END) @echo $(TAG)Running tests on all Pythons via Tox$(END)
tox tox
@echo @echo