Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 825a69a

Browse files
authored
MAINT using pytest-xdist and pin coverage to 6.2 (#22311)
1 parent d78a04d commit 825a69a

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

build_tools/azure/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ python -m pip install $(get_dep threadpoolctl $THREADPOOLCTL_VERSION) \
137137
$(get_dep pytest-xdist $PYTEST_XDIST_VERSION)
138138

139139
if [[ "$COVERAGE" == "true" ]]; then
140-
python -m pip install codecov pytest-cov
140+
# XXX: coverage is temporary pinned to 6.2 because 6.3 multiprocessing fork-safe
141+
# cf. https://github.com/nedbat/coveragepy/issues/1310
142+
python -m pip install codecov pytest-cov coverage==6.2
141143
fi
142144

143145
if [[ "$PYTEST_XDIST_VERSION" != "none" ]]; then

build_tools/azure/install_win.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ if [[ "$PYTEST_XDIST_VERSION" != "none" ]]; then
2424
fi
2525

2626
if [[ "$COVERAGE" == "true" ]]; then
27-
pip install coverage codecov pytest-cov
27+
# XXX: coverage is temporary pinned to 6.2 because 6.3 multiprocessing fork-safe
28+
# cf. https://github.com/nedbat/coveragepy/issues/1310
29+
pip install coverage codecov pytest-cov coverage==6.2
2830
fi
2931

3032
python --version

build_tools/azure/posix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
MATPLOTLIB_VERSION: 'latest'
3333
PYTEST_VERSION: 'latest'
3434
# Disable pytest-xdist as it can stall builds
35-
PYTEST_XDIST_VERSION: 'none'
35+
PYTEST_XDIST_VERSION: 'latest'
3636
THREADPOOLCTL_VERSION: 'latest'
3737
COVERAGE: 'true'
3838
TEST_DOCSTRINGS: 'false'

build_tools/azure/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
SKLEARN_SKIP_NETWORK_TESTS: '1'
1919
PYTEST_VERSION: '5.2.1'
2020
# Disable pytest-xdist as it can stall builds
21-
PYTEST_XDIST_VERSION: 'none'
21+
PYTEST_XDIST_VERSION: 'latest'
2222
TEST_DIR: '$(Agent.WorkFolder)/tmp_folder'
2323
SHOW_SHORT_SUMMARY: 'false'
2424
CPU_COUNT: '2'

build_tools/circle/build_test_arm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ mamba install --verbose -y ccache \
5454
setup_ccache
5555

5656
if [[ "$COVERAGE" == "true" ]]; then
57-
mamba install --verbose -y codecov pytest-cov
57+
# XXX: coverage is temporary pinned to 6.2 because 6.3 multiprocessing fork-safe
58+
# cf. https://github.com/nedbat/coveragepy/issues/1310
59+
mamba install --verbose -y codecov pytest-cov coverage=6.2
5860
fi
5961

6062
if [[ "$TEST_DOCSTRINGS" == "true" ]]; then

0 commit comments

Comments
 (0)