Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MAINT: Drop pytest-xdist requirement, minimum pytest version #2856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jan 20, 2019
Prev Previous commit
Next Next commit
CI: Install pytest-xdist in CI for speed
  • Loading branch information
effigies committed Jan 16, 2019
commit fb0801a42a7b19ece2084e981914883260ab0ce1
5 changes: 4 additions & 1 deletion 5 .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ before_install:
install:
- travis_retry pip install $EXTRA_PIP_FLAGS -e .[$NIPYPE_EXTRAS]

after_install:
- travis_retry pip install pytest-xdist

script:
- py.test -v --cov nipype --cov-config .coveragerc --cov-report xml:cov.xml -c nipype/pytest.ini --doctest-modules nipype
- py.test -v --cov nipype --cov-config .coveragerc --cov-report xml:cov.xml -c nipype/pytest.ini --doctest-modules nipype -n auto

after_script:
- codecov --file cov.xml --flags unittests -e TRAVIS_JOB_NUMBER
1 change: 1 addition & 0 deletions 1 docker/files/run_pytests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export COVERAGE_FILE=${WORKDIR}/tests/.coverage.py${PYTHON_VERSION}
py.test -v --junitxml=${WORKDIR}/tests/pytests_py${PYTHON_VERSION}.xml \
--cov nipype --cov-config /src/nipype/.coveragerc \
--cov-report xml:${WORKDIR}/tests/coverage_py${PYTHON_VERSION}.xml \
-n auto \
-c ${TESTPATH}/pytest.ini ${TESTPATH}
exit_code=$?

Expand Down
2 changes: 2 additions & 0 deletions 2 docker/generate_dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ function generate_main_dockerfile() {
--miniconda use_env=neuro \
pip_opts="-e" \
pip_install="/src/nipype[all]" \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could just add pytest-xdist here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we want to install it in editable mode.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, meant L95

--miniconda use_env=neuro \
pip_install="pytest-xdist" \
--workdir /work \
--label org.label-schema.build-date='$BUILD_DATE' \
org.label-schema.name="NIPYPE" \
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.