Skip to content

Commit 3fb757b

Browse files
authored
CI: fix pytest scripts (#53727)
1 parent b69dccd commit 3fb757b

20 files changed

+25
-31
lines changed

.github/workflows/unit-tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ jobs:
230230
/opt/python/cp39-cp39/bin/python -m venv ~/virtualenvs/pandas-dev
231231
. ~/virtualenvs/pandas-dev/bin/activate
232232
python -m pip install -U pip wheel setuptools meson[ninja]==1.0.1 meson-python==0.13.1
233-
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 hypothesis>=6.46.1
233+
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 hypothesis>=6.46.1
234234
python -m pip install --no-cache-dir --no-build-isolation -e .
235235
python -m pip list --no-cache-dir
236236
export PANDAS_CI=1
@@ -268,7 +268,7 @@ jobs:
268268
/opt/python/cp39-cp39/bin/python -m venv ~/virtualenvs/pandas-dev
269269
. ~/virtualenvs/pandas-dev/bin/activate
270270
python -m pip install -U pip wheel setuptools meson-python==0.13.1 meson[ninja]==1.0.1
271-
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 hypothesis>=6.46.1
271+
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 hypothesis>=6.46.1
272272
python -m pip install --no-cache-dir --no-build-isolation -e .
273273
python -m pip list --no-cache-dir
274274
@@ -340,7 +340,7 @@ jobs:
340340
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
341341
python -m pip install git+https://github.com/nedbat/coveragepy.git
342342
python -m pip install versioneer[toml]
343-
python -m pip install python-dateutil pytz cython hypothesis>=6.46.1 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-cov pytest-asyncio>=0.17
343+
python -m pip install python-dateutil pytz cython hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-cov pytest-asyncio>=0.17
344344
python -m pip list
345345
346346
- name: Build Pandas

.github/workflows/wheels.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
shell: pwsh
141141
run: |
142142
$TST_CMD = @"
143-
python -m pip install pytz six numpy python-dateutil tzdata>=2022.1 hypothesis>=6.46.1 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17;
143+
python -m pip install pytz six numpy python-dateutil tzdata>=2022.1 hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17;
144144
python -m pip install --find-links=pandas\wheelhouse --no-index pandas;
145145
python -c `'import pandas as pd; pd.test()`';
146146
"@

ci/deps/actions-310.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- meson-python=0.13.1
1212

1313
# test dependencies
14-
- pytest>=7.0.0
14+
- pytest>=7.3.2
1515
- pytest-cov
1616
- pytest-xdist>=2.2.0
1717
- pytest-asyncio>=0.17.0

ci/deps/actions-311-downstream_compat.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- meson-python=0.13.1
1313

1414
# test dependencies
15-
- pytest>=7.0.0
15+
- pytest>=7.3.2
1616
- pytest-cov
1717
- pytest-xdist>=2.2.0
1818
- pytest-asyncio>=0.17.0

ci/deps/actions-311-numpydev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- meson-python=0.13.1
1111

1212
# test dependencies
13-
- pytest>=7.0.0
13+
- pytest>=7.3.2
1414
- pytest-cov
1515
# Once pytest-cov > 4 comes out, unpin this
1616
# Right now, a DeprecationWarning related to rsyncdir

ci/deps/actions-311-pyarrownightly.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- meson-python=0.13.1
1212

1313
# test dependencies
14-
- pytest>=7.0.0
14+
- pytest>=7.3.2
1515
- pytest-cov
1616
- pytest-xdist>=2.2.0
1717
- hypothesis>=6.46.1

ci/deps/actions-311.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- meson-python=0.13.1
1212

1313
# test dependencies
14-
- pytest>=7.0.0
14+
- pytest>=7.3.2
1515
- pytest-cov
1616
- pytest-xdist>=2.2.0
1717
- pytest-asyncio>=0.17.0

ci/deps/actions-39-minimum_versions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
- meson-python=0.13.1
1414

1515
# test dependencies
16-
- pytest>=7.0.0
16+
- pytest>=7.3.2
1717
- pytest-cov
1818
- pytest-xdist>=2.2.0
1919
- pytest-asyncio>=0.17.0

ci/deps/actions-39.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- meson-python=0.13.1
1212

1313
# test dependencies
14-
- pytest>=7.0.0
14+
- pytest>=7.3.2
1515
- pytest-cov
1616
- pytest-xdist>=2.2.0
1717
- pytest-asyncio>=0.17.0

ci/deps/actions-pypy-39.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
- meson-python=0.13.1
1515

1616
# test dependencies
17-
- pytest>=7.0.0
17+
- pytest>=7.3.2
1818
- pytest-cov
1919
- pytest-asyncio>=0.17.0
2020
- pytest-xdist>=2.2.0

ci/deps/circle-310-arm64.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- meson-python=0.13.1
1212

1313
# test dependencies
14-
- pytest>=7.0.0
14+
- pytest>=7.3.2
1515
- pytest-cov
1616
- pytest-xdist>=2.2.0
1717
- pytest-asyncio>=0.17.0

ci/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ test:
6262
- python -c "import pandas; pandas.test(extra_args={{ extra_args }})" # [python_impl == "cpython"]
6363
requires:
6464
- pip
65-
- pytest >=7.0.0
65+
- pytest >=7.3.2
6666
- pytest-asyncio >=0.17.0
6767
- pytest-xdist >=2.2.0
6868
- pytest-cov

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
- meson-python=0.13.1
1414

1515
# test dependencies
16-
- pytest>=7.0.0
16+
- pytest>=7.3.2
1717
- pytest-cov
1818
- pytest-xdist>=2.2.0
1919
- pytest-asyncio>=0.17.0

pandas/compat/_optional.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"pymysql": "1.0.2",
3737
"pyarrow": "7.0.0",
3838
"pyreadstat": "1.1.5",
39-
"pytest": "7.0.0",
39+
"pytest": "7.3.2",
4040
"pyxlsb": "1.0.9",
4141
"s3fs": "2022.05.0",
4242
"scipy": "1.8.1",

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repository = 'https://github.com/pandas-dev/pandas'
5656
matplotlib = "pandas:plotting._matplotlib"
5757

5858
[project.optional-dependencies]
59-
test = ['hypothesis>=6.46.1', 'pytest>=7.0.0', 'pytest-xdist>=2.2.0', 'pytest-asyncio>=0.17.0']
59+
test = ['hypothesis>=6.46.1', 'pytest>=7.3.2', 'pytest-xdist>=2.2.0', 'pytest-asyncio>=0.17.0']
6060
performance = ['bottleneck>=1.3.4', 'numba>=0.55.2', 'numexpr>=2.8.0']
6161
computation = ['scipy>=1.8.1', 'xarray>=2022.03.0']
6262
fss = ['fsspec>=2022.05.0']
@@ -101,7 +101,7 @@ all = ['beautifulsoup4>=4.11.1',
101101
'pymysql>=1.0.2',
102102
'PyQt5>=5.15.6',
103103
'pyreadstat>=1.1.5',
104-
'pytest>=7.0.0',
104+
'pytest>=7.3.2',
105105
'pytest-xdist>=2.2.0',
106106
'pytest-asyncio>=0.17.0',
107107
'python-snappy>=0.6.1',
@@ -146,7 +146,7 @@ setup = ['--vsenv'] # For Windows
146146
skip = "cp36-* cp37-* cp38-* pp* *_i686 *_ppc64le *_s390x *-musllinux_aarch64"
147147
build-verbosity = "3"
148148
environment = {LDFLAGS="-Wl,--strip-all"}
149-
test-requires = "hypothesis>=6.46.1 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17"
149+
test-requires = "hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17"
150150
test-command = """
151151
PANDAS_CI='1' python -c 'import pandas as pd; \
152152
pd.test(extra_args=["-m not clipboard and not single_cpu and not slow and not network and not db", "-n 2"]); \

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ versioneer[toml]
66
cython==0.29.33
77
meson[ninja]==1.0.1
88
meson-python==0.13.1
9-
pytest>=7.0.0
9+
pytest>=7.3.2
1010
pytest-cov
1111
pytest-xdist>=2.2.0
1212
pytest-asyncio>=0.17.0

scripts/tests/conftest.py

-6
This file was deleted.

scripts/tests/data/deps_expected_random.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- cython>=0.29.32
1111

1212
# test dependencies
13-
- pytest>=7.0.0
13+
- pytest>=7.3.2
1414
- pytest-cov
1515
- pytest-xdist>=2.2.0
1616
- psutil

scripts/tests/data/deps_minimum.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ repository = 'https://github.com/pandas-dev/pandas'
5555
matplotlib = "pandas:plotting._matplotlib"
5656

5757
[project.optional-dependencies]
58-
test = ['hypothesis>=6.34.2', 'pytest>=7.0.0', 'pytest-xdist>=2.2.0', 'pytest-asyncio>=0.17.0']
58+
test = ['hypothesis>=6.34.2', 'pytest>=7.3.2', 'pytest-xdist>=2.2.0', 'pytest-asyncio>=0.17.0']
5959
performance = ['bottleneck>=1.3.2', 'numba>=0.53.1', 'numexpr>=2.7.1']
6060
timezone = ['tzdata>=2022.1']
6161
computation = ['scipy>=1.7.1', 'xarray>=0.21.0']
@@ -101,7 +101,7 @@ all = ['beautifulsoup4>=5.9.3',
101101
'pymysql>=1.0.2',
102102
'PyQt5>=5.15.1',
103103
'pyreadstat>=1.1.2',
104-
'pytest>=7.0.0',
104+
'pytest>=7.3.2',
105105
'pytest-xdist>=2.2.0',
106106
'pytest-asyncio>=0.17.0',
107107
'python-snappy>=0.6.0',
@@ -143,7 +143,7 @@ parentdir_prefix = "pandas-"
143143
[tool.cibuildwheel]
144144
skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
145145
build-verbosity = "3"
146-
test-requires = "hypothesis>=6.34.2 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17"
146+
test-requires = "hypothesis>=6.34.2 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17"
147147
test-command = "python {project}/ci/test_wheels.py"
148148

149149
[tool.cibuildwheel.macos]

scripts/tests/data/deps_unmodified_random.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- cython>=0.29.32
1111

1212
# test dependencies
13-
- pytest>=7.0.0
13+
- pytest>=7.3.2
1414
- pytest-cov
1515
- pytest-xdist>=2.2.0
1616
- psutil

0 commit comments

Comments
 (0)