Skip to content

Commit bf02177

Browse files
committed
Backport PR pandas-dev#43468: CI: split Windows Azure tests in half
1 parent 8b55e4f commit bf02177

File tree

6 files changed

+38
-3
lines changed

6 files changed

+38
-3
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ jobs:
165165
PANDAS_DATA_MANAGER: array
166166
PATTERN: ${{ matrix.pattern }}
167167
PYTEST_WORKERS: "auto"
168+
PYTEST_TARGET: pandas
168169
run: |
169170
source activate pandas-dev
170171
ci/run_tests.sh

.github/workflows/posix.yml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
LC_ALL: ${{ matrix.settings[4] }}
4646
PANDAS_TESTING_MODE: ${{ matrix.settings[5] }}
4747
TEST_ARGS: ${{ matrix.settings[6] }}
48+
PYTEST_TARGET: pandas
4849

4950
steps:
5051
- name: Checkout

.github/workflows/python-dev.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
PANDAS_CI: 1
1818
PATTERN: "not slow and not network and not clipboard"
1919
COVERAGE: true
20+
PYTEST_TARGET: pandas
2021

2122
jobs:
2223
build:

azure-pipelines.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pr:
1717

1818
variables:
1919
PYTEST_WORKERS: auto
20+
PYTEST_TARGET: pandas
2021

2122
jobs:
2223
# Mac and Linux use the same template

ci/azure/windows.yml

+33-2
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,47 @@ jobs:
88
vmImage: ${{ parameters.vmImage }}
99
strategy:
1010
matrix:
11-
py37_np17:
11+
py37_np17_1:
1212
ENV_FILE: ci/deps/azure-windows-37.yaml
1313
CONDA_PY: "37"
1414
PATTERN: "not slow and not network"
1515
PYTEST_WORKERS: 2 # GH-42236
16+
PYTEST_TARGET: "pandas/tests/[a-i]*"
1617

17-
py38_np18:
18+
py37_np17_2:
19+
ENV_FILE: ci/deps/azure-windows-37.yaml
20+
CONDA_PY: "37"
21+
PATTERN: "not slow and not network"
22+
PYTEST_WORKERS: 2 # GH-42236
23+
PYTEST_TARGET: "pandas/tests/[j-z]*"
24+
25+
py38_np18_1:
26+
ENV_FILE: ci/deps/azure-windows-38.yaml
27+
CONDA_PY: "38"
28+
PATTERN: "not slow and not network"
29+
PYTEST_WORKERS: 2 # GH-42236
30+
PYTEST_TARGET: "pandas/tests/[a-i]*"
31+
32+
py38_np18_2:
1833
ENV_FILE: ci/deps/azure-windows-38.yaml
1934
CONDA_PY: "38"
35+
PATTERN: "not slow and not network"
36+
PYTEST_WORKERS: 2 # GH-42236
37+
PYTEST_TARGET: "pandas/tests/[j-z]*"
38+
39+
py39_1:
40+
ENV_FILE: ci/deps/azure-windows-39.yaml
41+
CONDA_PY: "39"
42+
PATTERN: "not slow and not network and not high_memory"
43+
PYTEST_WORKERS: 2 # GH-42236
44+
PYTEST_TARGET: "pandas/tests/[a-i]*"
45+
46+
py39_2:
47+
ENV_FILE: ci/deps/azure-windows-39.yaml
48+
CONDA_PY: "39"
2049
PATTERN: "not slow and not network and not high_memory"
2150
PYTEST_WORKERS: 2 # GH-42236
51+
PYTEST_TARGET: "pandas/tests/[j-z]*"
2252

2353
steps:
2454
- powershell: |
@@ -42,6 +72,7 @@ jobs:
4272
4373
- bash: |
4474
source activate pandas-dev
75+
wmic.exe cpu get caption, deviceid, name, numberofcores, maxclockspeed
4576
ci/run_tests.sh
4677
displayName: 'Test'
4778

ci/run_tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [[ $(uname) == "Linux" && -z $DISPLAY ]]; then
1919
XVFB="xvfb-run "
2020
fi
2121

22-
PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE pandas"
22+
PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE $PYTEST_TARGET"
2323

2424
if [[ $(uname) != "Linux" && $(uname) != "Darwin" ]]; then
2525
# GH#37455 windows py38 build appears to be running out of memory

0 commit comments

Comments
 (0)