Skip to content

Commit 2cac884

Browse files
Backport PR pandas-dev#35898 on branch 1.1.x: CI: docker 32-bit linux build (pandas-dev#37466)
Co-authored-by: Fangchen Li <[email protected]>
1 parent 91b7aba commit 2cac884

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

azure-pipelines.yml

+25
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,28 @@ jobs:
2626
parameters:
2727
name: Windows
2828
vmImage: vs2017-win2016
29+
30+
- job: py37_32bit
31+
pool:
32+
vmImage: ubuntu-18.04
33+
34+
steps:
35+
- script: |
36+
docker pull quay.io/pypa/manylinux2014_i686
37+
docker run -v $(pwd):/pandas quay.io/pypa/manylinux2014_i686 \
38+
/bin/bash -xc "cd pandas && \
39+
/opt/python/cp37-cp37m/bin/python -m venv ~/virtualenvs/pandas-dev && \
40+
. ~/virtualenvs/pandas-dev/bin/activate && \
41+
python -m pip install --no-deps -U pip wheel setuptools && \
42+
pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis pytest-azurepipelines && \
43+
python setup.py build_ext -q -i -j2 && \
44+
python -m pip install --no-build-isolation -e . && \
45+
pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml"
46+
displayName: 'Run 32-bit manylinux2014 Docker Build / Tests'
47+
48+
- task: PublishTestResults@2
49+
condition: succeededOrFailed()
50+
inputs:
51+
testResultsFiles: '**/test-*.xml'
52+
failTaskOnFailedTests: true
53+
testRunTitle: 'Publish test results for Python 3.7-32 bit full Linux'

pandas/tests/groupby/test_groupby.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1255,8 +1255,8 @@ def test_groupby_nat_exclude():
12551255
assert grouped.ngroups == 2
12561256

12571257
expected = {
1258-
Timestamp("2013-01-01 00:00:00"): np.array([1, 7], dtype=np.int64),
1259-
Timestamp("2013-02-01 00:00:00"): np.array([3, 5], dtype=np.int64),
1258+
Timestamp("2013-01-01 00:00:00"): np.array([1, 7], dtype=np.intp),
1259+
Timestamp("2013-02-01 00:00:00"): np.array([3, 5], dtype=np.intp),
12601260
}
12611261

12621262
for k in grouped.indices:

pandas/tests/io/formats/test_info.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
import pytest
99

10-
from pandas.compat import PYPY
10+
from pandas.compat import IS64, PYPY
1111

1212
from pandas import (
1313
CategoricalIndex,
@@ -405,6 +405,7 @@ def test_info_categorical():
405405
df.info(buf=buf)
406406

407407

408+
@pytest.mark.xfail(not IS64, reason="GH 36579: fail on 32-bit system")
408409
def test_info_int_columns():
409410
# GH#37245
410411
df = DataFrame({1: [1, 2], 2: [2, 3]}, index=["A", "B"])

0 commit comments

Comments
 (0)