run tests using make
This commit is contained in:
parent
33e0cdc2d7
commit
77a51d1ad4
2 changed files with 11 additions and 3 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
||||||
- working-directory: lbry
|
- working-directory: lbry
|
||||||
env:
|
env:
|
||||||
HOME: /tmp
|
HOME: /tmp
|
||||||
run: coverage run -p --source=lbry -m unittest discover -vv tests.unit
|
run: make test-unit-coverage
|
||||||
|
|
||||||
tests-integration:
|
tests-integration:
|
||||||
name: "tests / integration"
|
name: "tests / integration"
|
||||||
|
|
12
Makefile
12
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: install tools lint test idea
|
.PHONY: install tools lint test test-unit test-unit-coverage test-integration idea
|
||||||
|
|
||||||
install:
|
install:
|
||||||
pip install https://s3.amazonaws.com/files.lbry.io/python_libtorrent-1.2.4-py3-none-any.whl
|
pip install https://s3.amazonaws.com/files.lbry.io/python_libtorrent-1.2.4-py3-none-any.whl
|
||||||
|
@ -16,7 +16,15 @@ lint:
|
||||||
pylint --rcfile=setup.cfg lbry
|
pylint --rcfile=setup.cfg lbry
|
||||||
#mypy --ignore-missing-imports lbry
|
#mypy --ignore-missing-imports lbry
|
||||||
|
|
||||||
test:
|
test: test-unit test-integration
|
||||||
|
|
||||||
|
test-unit:
|
||||||
|
python -m unittest discover tests.unit
|
||||||
|
|
||||||
|
test-unit-coverage:
|
||||||
|
coverage run -p --source=lbry -m unittest discover -vv tests.unit
|
||||||
|
|
||||||
|
test-integration:
|
||||||
tox
|
tox
|
||||||
|
|
||||||
idea:
|
idea:
|
||||||
|
|
Loading…
Reference in a new issue