Skip to content

Commit f2a0125

Browse files
authored
CI: Simplify GHA dependency files (#45257)
1 parent e255e56 commit f2a0125

14 files changed

+95
-205
lines changed

.github/workflows/posix.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
[actions-38-downstream_compat.yaml, "not slow and not network and not clipboard", "", "", "", "", ""],
2929
[actions-38-minimum_versions.yaml, "slow", "", "", "", "", ""],
3030
[actions-38-minimum_versions.yaml, "not slow and not network and not clipboard", "", "", "", "", ""],
31-
[actions-38-locale_slow.yaml, "slow", "language-pack-it xsel", "it_IT.utf8", "it_IT.utf8", "", ""],
31+
[actions-38.yaml, "not slow and not network", "language-pack-it xsel", "it_IT.utf8", "it_IT.utf8", "", ""],
32+
[actions-38.yaml, "not slow and not network", "language-pack-zh-hans xsel", "zh_CN.utf8", "zh_CN.utf8", "", ""],
3233
[actions-38.yaml, "not slow and not clipboard", "", "", "", "", ""],
33-
[actions-38-slow.yaml, "slow", "", "", "", "", ""],
34-
[actions-38-locale.yaml, "not slow and not network", "language-pack-zh-hans xsel", "zh_CN.utf8", "zh_CN.utf8", "", ""],
35-
[actions-39-slow.yaml, "slow", "", "", "", "", ""],
34+
[actions-38.yaml, "slow", "", "", "", "", ""],
3635
[actions-pypy-38.yaml, "not slow and not clipboard", "", "", "", "", "--max-worker-restart 0"],
3736
[actions-39-numpydev.yaml, "not slow and not network", "xsel", "", "", "deprecate", "-W error"],
37+
[actions-39.yaml, "slow", "", "", "", "", ""],
3838
[actions-39.yaml, "not slow and not clipboard", "", "", "", "", ""]
3939
]
4040
fail-fast: false

ci/deps/actions-38-locale.yaml

-36
This file was deleted.

ci/deps/actions-38-locale_slow.yaml

-30
This file was deleted.

ci/deps/actions-38-slow.yaml

-37
This file was deleted.

ci/deps/actions-38.yaml

+36-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
11
name: pandas-dev
22
channels:
3-
- defaults
43
- conda-forge
54
dependencies:
65
- python=3.8
76

8-
# tools
9-
- cython>=0.29.24
7+
# test dependencies
8+
- cython=0.29.24
109
- pytest>=6.0
1110
- pytest-cov
1211
- pytest-xdist>=1.31
1312
- hypothesis>=5.5.3
13+
- psutil
1414

15-
# pandas dependencies
16-
- numpy
15+
# required dependencies
1716
- python-dateutil
18-
- nomkl
17+
- numpy
1918
- pytz
19+
20+
# optional dependencies
21+
- beautifulsoup4
22+
- blosc
23+
- bottleneck
24+
- fastparquet
25+
- fsspec
26+
- html5lib
27+
- gcsfs
28+
- jinja2
29+
- lxml
30+
- matplotlib
31+
- numba
32+
- numexpr
33+
- openpyxl
34+
- odfpy
35+
- pandas-gbq
36+
- psycopg2
37+
- pymysql
38+
- pytables
39+
- pyarrow
40+
- pyreadstat
41+
- pyxlsb
42+
- s3fs
43+
- scipy
44+
- sqlalchemy
2045
- tabulate
46+
- xarray
47+
- xlrd
48+
- xlsxwriter
49+
- xlwt
50+
- zstandard

ci/deps/actions-39-slow.yaml

-41
This file was deleted.

ci/deps/actions-39.yaml

+23-13
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,47 @@ channels:
44
dependencies:
55
- python=3.9
66

7-
# tools
8-
- cython>=0.29.24
7+
# test dependencies
8+
- cython=0.29.24
99
- pytest>=6.0
1010
- pytest-cov
1111
- pytest-xdist>=1.31
1212
- hypothesis>=5.5.3
13+
- psutil
1314

14-
# pandas dependencies
15+
# required dependencies
16+
- python-dateutil
17+
- numpy
18+
- pytz
19+
20+
# optional dependencies
1521
- beautifulsoup4
22+
- blosc
1623
- bottleneck
17-
- boto3
18-
- fsspec>=0.8.0
19-
- gcsfs
24+
- fastparquet
25+
- fsspec
2026
- html5lib
27+
- gcsfs
2128
- jinja2
2229
- lxml
2330
- matplotlib
24-
- numpy # move up to solve before numba
2531
- numba
2632
- numexpr
2733
- openpyxl
28-
- pyarrow>2.0.1
34+
- odfpy
35+
- pandas-gbq
36+
- psycopg2
37+
- pymysql
2938
- pytables
30-
- python-dateutil
31-
- pytz
32-
- s3fs>=0.4.2
39+
- pyarrow
40+
- pyreadstat
41+
- pyxlsb
42+
- s3fs
3343
- scipy
3444
- sqlalchemy
45+
- tabulate
46+
- xarray
3547
- xlrd
3648
- xlsxwriter
3749
- xlwt
38-
- pyreadstat
39-
- pyxlsb
4050
- zstandard

pandas/tests/arrays/floating/test_construction.py

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
import locale
2-
31
import numpy as np
42
import pytest
53

6-
from pandas.compat import (
7-
is_platform_windows,
8-
np_version_under1p20,
9-
)
4+
from pandas.compat import np_version_under1p20
105

116
import pandas as pd
127
import pandas._testing as tm
@@ -47,7 +42,7 @@ def test_floating_array_constructor():
4742
FloatingArray(values)
4843

4944

50-
def test_floating_array_disallows_float16(request):
45+
def test_floating_array_disallows_float16():
5146
# GH#44715
5247
arr = np.array([1, 2], dtype=np.float16)
5348
mask = np.array([False, False])
@@ -56,11 +51,10 @@ def test_floating_array_disallows_float16(request):
5651
with pytest.raises(TypeError, match=msg):
5752
FloatingArray(arr, mask)
5853

59-
if np_version_under1p20 or (
60-
locale.getlocale()[0] != "en_US" and not is_platform_windows()
61-
):
62-
# the locale condition may need to be refined; this fails on
63-
# the CI in the ZH_CN build
54+
55+
def test_floating_array_disallows_Float16_dtype(request):
56+
# GH#44715
57+
if np_version_under1p20:
6458
# https://github.com/numpy/numpy/issues/20512
6559
mark = pytest.mark.xfail(reason="numpy does not raise on np.dtype('Float16')")
6660
request.node.add_marker(mark)

pandas/tests/arrays/period/test_arrow_compat.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from pandas.compat import pa_version_under2p0
3+
from pandas.compat import pa_version_under3p0
44

55
from pandas.core.dtypes.dtypes import PeriodDtype
66

@@ -72,7 +72,7 @@ def test_arrow_array_missing():
7272

7373

7474
@pytest.mark.xfail(
75-
pa_version_under2p0, reason="pyarrow incorrectly uses pandas internals API"
75+
pa_version_under3p0, reason="pyarrow incorrectly uses pandas internals API"
7676
)
7777
def test_arrow_table_roundtrip():
7878
from pandas.core.arrays._arrow_utils import ArrowPeriodType
@@ -94,7 +94,7 @@ def test_arrow_table_roundtrip():
9494

9595

9696
@pytest.mark.xfail(
97-
pa_version_under2p0, reason="pyarrow incorrectly uses pandas internals API"
97+
pa_version_under3p0, reason="pyarrow incorrectly uses pandas internals API"
9898
)
9999
def test_arrow_load_from_zero_chunks():
100100
# GH-41040
@@ -115,7 +115,7 @@ def test_arrow_load_from_zero_chunks():
115115

116116

117117
@pytest.mark.xfail(
118-
pa_version_under2p0, reason="pyarrow incorrectly uses pandas internals API"
118+
pa_version_under3p0, reason="pyarrow incorrectly uses pandas internals API"
119119
)
120120
def test_arrow_table_roundtrip_without_metadata():
121121
arr = PeriodArray([1, 2, 3], freq="H")

pandas/tests/io/excel/test_readers.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -738,10 +738,9 @@ def test_bad_sheetname_raises(self, read_ext, sheet_name):
738738

739739
def test_missing_file_raises(self, read_ext):
740740
bad_file = f"foo{read_ext}"
741-
# CI tests with zh_CN.utf8, translates to "No such file or directory"
742-
with pytest.raises(
743-
FileNotFoundError, match=r"(No such file or directory|没有那个文件或目录)"
744-
):
741+
# CI tests with other languages, translates to "No such file or directory"
742+
match = r"(No such file or directory|没有那个文件或目录|File o directory non esistente)"
743+
with pytest.raises(FileNotFoundError, match=match):
745744
pd.read_excel(bad_file)
746745

747746
def test_corrupt_bytes_raises(self, read_ext, engine):

pandas/tests/io/test_feather.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import numpy as np
33
import pytest
44

5-
from pandas.compat.pyarrow import pa_version_under2p0
5+
from pandas.compat.pyarrow import pa_version_under3p0
66

77
import pandas as pd
88
import pandas._testing as tm
@@ -87,7 +87,7 @@ def test_basic(self):
8787
),
8888
}
8989
)
90-
if not pa_version_under2p0:
90+
if not pa_version_under3p0:
9191
# older pyarrow incorrectly uses pandas internal API, so
9292
# constructs invalid Block
9393
df["periods"] = pd.period_range("2013", freq="M", periods=3)

0 commit comments

Comments
 (0)