Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Oct 26, 2020
1 parent 156b08a commit aa1d0df
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ diff-cover.html: coverage.xml

## test : run the ${MODULE} test suite
test: FORCE
python setup.py test --addopts "tests" #-n auto --dist=loadfile"
python setup.py test # --addopts "-n auto --dist=loadfile"

## testcov : run the ${MODULE} test suite and collect coverage
testcov: $(pysources)
python setup.py test --addopts "tests --cov ${MODULE}" # -n auto --dist=loadfile"
python setup.py test --addopts "--cov ${MODULE}" # -n auto --dist=loadfile"

sloccount.sc: ${PYSOURCES} Makefile
sloccount --duplicates --wide --details $^ > $@
Expand Down
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
ruamel.yaml<=0.16.5,>=0.12.4
schema-salad
requests
schema-salad >= 7, < 8
typing_extensions
cwltool
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ extend-ignore = E203, W503
test=pytest

[tool:pytest]
addopts=--pyargs cwl_utils
testpaths = tests

[tool:isort]
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys

from setuptools import find_packages, setup
from setuptools import setup

exec(open("cwl_utils/__meta__.py").read())

Expand All @@ -13,17 +13,18 @@
license="Apache 2.0",
author="Common workflow language working group",
author_email="common-workflow-language@googlegroups.com",
packages=find_packages(),
packages=["cwl_utils", "cwl_utils.tests"],
package_dir={"cwl_utils.tests": "tests"},
python_requires=">=3.6",
install_requires=[
"ruamel.yaml<=0.16.5,>=0.12.4",
"six",
"requests",
"schema-salad >= 7, < 8",
"typing_extensions",
"cwltool",
],
setup_requires=[] + pytest_runner,
tests_require=["pytest<7", "cwltool", "requests"],
tests_require=["pytest<7", "cwltool"],
test_suite="tests",
scripts=[
"cwl_utils/docker_extract.py",
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pytest < 7
pytest-cov
cwltool
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ setenv =
commands =
py{36,37,38,39}-unit: python -m pip install -U pip setuptools wheel
py{36,37,38,39}-unit: python -m pip install -e .
py{36,37,38,39}-unit: coverage run --parallel-mode -m pytest --strict tests {posargs}
py{36,37,38,39}-unit: coverage run --parallel-mode -m pytest --strict {posargs}
py{36,37,38,39}-unit: coverage combine
py{36,37,38,39}-unit: coverage report
py{36,37,38,39}-unit: coverage xml
Expand Down

0 comments on commit aa1d0df

Please sign in to comment.