Skip to content

Commit 6e19bdc

Browse files
authored
CI: split Windows Azure tests in half (#43468)
1 parent fd151ba commit 6e19bdc

File tree

6 files changed

+24
-3
lines changed

6 files changed

+24
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ jobs:
168168
PANDAS_DATA_MANAGER: array
169169
PATTERN: ${{ matrix.pattern }}
170170
PYTEST_WORKERS: "auto"
171+
PYTEST_TARGET: pandas
171172
run: |
172173
source activate pandas-dev
173174
ci/run_tests.sh

.github/workflows/posix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
LC_ALL: ${{ matrix.settings[4] }}
4545
PANDAS_TESTING_MODE: ${{ matrix.settings[5] }}
4646
TEST_ARGS: ${{ matrix.settings[6] }}
47+
PYTEST_TARGET: pandas
4748
concurrency:
4849
group: ${{ github.ref }}-${{ matrix.settings[0] }}
4950
cancel-in-progress: ${{github.event_name == 'pull_request'}}

.github/workflows/python-dev.yml

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

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

17-
py39:
18+
py38_np18_2:
19+
ENV_FILE: ci/deps/azure-windows-38.yaml
20+
CONDA_PY: "38"
21+
PATTERN: "not slow and not network"
22+
PYTEST_WORKERS: 2 # GH-42236
23+
PYTEST_TARGET: "pandas/tests/[j-z]*"
24+
25+
py39_1:
26+
ENV_FILE: ci/deps/azure-windows-39.yaml
27+
CONDA_PY: "39"
28+
PATTERN: "not slow and not network and not high_memory"
29+
PYTEST_WORKERS: 2 # GH-42236
30+
PYTEST_TARGET: "pandas/tests/[a-i]*"
31+
32+
py39_2:
1833
ENV_FILE: ci/deps/azure-windows-39.yaml
1934
CONDA_PY: "39"
2035
PATTERN: "not slow and not network and not high_memory"
2136
PYTEST_WORKERS: 2 # GH-42236
37+
PYTEST_TARGET: "pandas/tests/[j-z]*"
2238

2339
steps:
2440
- powershell: |
@@ -39,6 +55,7 @@ jobs:
3955
displayName: 'Build'
4056
- bash: |
4157
source activate pandas-dev
58+
wmic.exe cpu get caption, deviceid, name, numberofcores, maxclockspeed
4259
ci/run_tests.sh
4360
displayName: 'Test'
4461
- task: PublishTestResults@2

ci/run_tests.sh

Lines changed: 1 addition & 1 deletion
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)