Skip to content

Commit 3e6bc0c

Browse files
[ArrayManager] TST: run all tests with separate not slow / slow build (#40495)
1 parent bd8c79f commit 3e6bc0c

File tree

5 files changed

+21
-37
lines changed

5 files changed

+21
-37
lines changed

.github/workflows/ci.yml

+8-37
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ jobs:
141141
data_manager:
142142
name: Test experimental data manager
143143
runs-on: ubuntu-latest
144+
strategy:
145+
matrix:
146+
pattern: ["not slow and not network and not clipboard", "slow"]
144147
steps:
145148

146149
- name: Checkout
@@ -152,43 +155,11 @@ jobs:
152155
- name: Run tests
153156
env:
154157
PANDAS_DATA_MANAGER: array
158+
PATTERN: ${{ matrix.pattern }}
159+
PYTEST_WORKERS: "auto"
155160
run: |
156161
source activate pandas-dev
162+
ci/run_tests.sh
157163
158-
pytest pandas/tests/frame/
159-
pytest pandas/tests/reductions/
160-
pytest pandas/tests/generic/test_generic.py
161-
pytest pandas/tests/arithmetic/
162-
pytest pandas/tests/groupby/
163-
pytest pandas/tests/resample/
164-
pytest pandas/tests/reshape/merge
165-
pytest pandas/tests/series/
166-
pytest pandas/tests/indexing/
167-
168-
pytest pandas/tests/test_*
169-
pytest pandas/tests/api/
170-
pytest pandas/tests/apply/
171-
pytest pandas/tests/arrays/
172-
pytest pandas/tests/base/
173-
pytest pandas/tests/computation/
174-
pytest pandas/tests/config/
175-
pytest pandas/tests/dtypes/
176-
pytest pandas/tests/extension/
177-
pytest pandas/tests/generic/
178-
pytest pandas/tests/indexes/
179-
pytest pandas/tests/internals/
180-
pytest pandas/tests/io/test_* -m "not slow and not clipboard"
181-
pytest pandas/tests/io/excel/ -m "not slow and not clipboard"
182-
pytest pandas/tests/io/formats/ -m "not slow and not clipboard"
183-
pytest pandas/tests/io/parser/ -m "not slow and not clipboard"
184-
pytest pandas/tests/io/sas/ -m "not slow and not clipboard"
185-
pytest pandas/tests/io/xml/ -m "not slow and not clipboard"
186-
pytest pandas/tests/libs/
187-
pytest pandas/tests/plotting/
188-
pytest pandas/tests/scalar/
189-
pytest pandas/tests/strings/
190-
pytest pandas/tests/tools/
191-
pytest pandas/tests/tseries/
192-
pytest pandas/tests/tslibs/
193-
pytest pandas/tests/util/
194-
pytest pandas/tests/window/
164+
- name: Print skipped tests
165+
run: python ci/print_skipped.py
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import pandas.util._test_decorators as td
2+
3+
# TODO(ArrayManager) concat axis=0
4+
pytestmark = td.skip_array_manager_not_yet_implemented

pandas/tests/reshape/test_crosstab.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import numpy as np
22
import pytest
33

4+
import pandas.util._test_decorators as td
5+
46
from pandas.core.dtypes.common import is_categorical_dtype
57

68
from pandas import (
@@ -438,6 +440,7 @@ def test_crosstab_normalize_arrays(self):
438440
)
439441
tm.assert_frame_equal(test_case, norm_sum)
440442

443+
@td.skip_array_manager_not_yet_implemented # TODO(ArrayManager) concat axis=0
441444
def test_crosstab_with_empties(self):
442445
# Check handling of empties
443446
df = DataFrame(

pandas/tests/reshape/test_pivot.py

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import numpy as np
99
import pytest
1010

11+
import pandas.util._test_decorators as td
12+
1113
import pandas as pd
1214
from pandas import (
1315
Categorical,
@@ -1197,6 +1199,7 @@ def test_pivot_table_with_margins_set_margin_name(self, margin_name):
11971199
margins_name=margin_name,
11981200
)
11991201

1202+
@td.skip_array_manager_not_yet_implemented # TODO(ArrayManager) concat axis=0
12001203
def test_pivot_timegrouper(self):
12011204
df = DataFrame(
12021205
{

pandas/tests/reshape/test_pivot_multilevel.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import numpy as np
22
import pytest
33

4+
import pandas.util._test_decorators as td
5+
46
import pandas as pd
57
from pandas import (
68
Index,
@@ -196,6 +198,7 @@ def test_pivot_list_like_columns(
196198
tm.assert_frame_equal(result, expected)
197199

198200

201+
@td.skip_array_manager_not_yet_implemented # TODO(ArrayManager) concat axis=0
199202
def test_pivot_multiindexed_rows_and_cols():
200203
# GH 36360
201204

0 commit comments

Comments
 (0)