Skip to content

Commit

Permalink
ci: move test dep to extra-requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Sep 3, 2020
1 parent e027538 commit 9a5965a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
docker ps
jina check
export JINA_LOG_VERBOSITY="ERROR"
pip install pytest pytest-xdist==1.34.0 pytest-timeout pytest-cov flaky
pip install .[test]
pytest --force-flaky --min-passes 1 --cov=jina --cov-report=xml -n 1 --timeout=120 -v tests/unit
mv coverage.xml unit-test-coverage.xml
timeout-minutes: 30
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
docker ps
jina check
export JINA_LOG_VERBOSITY="ERROR"
pip install pytest pytest-xdist==1.34.0 pytest-timeout pytest-cov flaky
pip install .[test]
pytest --force-flaky --min-passes 1 --cov=jina --cov-report=xml -n 1 --timeout=120 -v tests/integration
mv coverage.xml integration-test-coverage.xml
timeout-minutes: 30
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
docker ps
jina check
export JINA_LOG_VERBOSITY="ERROR"
pip install pytest pytest-subtests pytest-xdist==1.34.0 pytest-timeout pytest-cov flaky
pip install .[test]
pytest --force-flaky --min-passes 1 --cov=jina --cov-report=xml -n 1 --timeout=120 -v tests/unit
mv coverage.xml unit-test-coverage.xml
timeout-minutes: 30
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
docker ps
jina check
export JINA_LOG_VERBOSITY="ERROR"
pip install pytest pytest-subtests pytest-xdist==1.34.0 pytest-timeout pytest-cov flaky
pip install .[test]
pytest --force-flaky --min-passes 1 --cov=jina --cov-report=xml -n 1 --timeout=120 -v tests/integration
mv coverage.xml integration-test-coverage.xml
timeout-minutes: 30
Expand Down
8 changes: 7 additions & 1 deletion extra-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,10 @@ protobuf: core
grpcio: core
ruamel.yaml>=0.15.89: core
tornado>=5.1.0: core
cookiecutter: hub, devel
cookiecutter: hub, devel
pytest: test
pytest-subtests: test
pytest-xdist==1.34.0: test
pytest-timeout: test
pytest-cov: test
flaky: test

0 comments on commit 9a5965a

Please sign in to comment.