Skip to content

Commit

Permalink
Backport PR pandas-dev#35898 on branch 1.1.x: CI: docker 32-bit linux…
Browse files Browse the repository at this point in the history
… build
  • Loading branch information
fangchenli authored and simonjayhawkins committed Oct 28, 2020
1 parent 91b7aba commit 38504cd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
25 changes: 25 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,28 @@ jobs:
parameters:
name: Windows
vmImage: vs2017-win2016

- job: py37_32bit
pool:
vmImage: ubuntu-18.04

steps:
- script: |
docker pull quay.io/pypa/manylinux2014_i686
docker run -v $(pwd):/pandas quay.io/pypa/manylinux2014_i686 \
/bin/bash -xc "cd pandas && \
/opt/python/cp37-cp37m/bin/python -m venv ~/virtualenvs/pandas-dev && \
. ~/virtualenvs/pandas-dev/bin/activate && \
python -m pip install --no-deps -U pip wheel setuptools && \
pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis pytest-azurepipelines && \
python setup.py build_ext -q -i -j2 && \
python -m pip install --no-build-isolation -e . && \
pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml"
displayName: 'Run 32-bit manylinux2014 Docker Build / Tests'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
failTaskOnFailedTests: true
testRunTitle: 'Publish test results for Python 3.7-32 bit full Linux'
4 changes: 2 additions & 2 deletions pandas/tests/groupby/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,8 +1255,8 @@ def test_groupby_nat_exclude():
assert grouped.ngroups == 2

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

for k in grouped.indices:
Expand Down
3 changes: 2 additions & 1 deletion pandas/tests/io/formats/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
import pytest

from pandas.compat import PYPY
from pandas.compat import IS64, PYPY

from pandas import (
CategoricalIndex,
Expand Down Expand Up @@ -405,6 +405,7 @@ def test_info_categorical():
df.info(buf=buf)


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

0 comments on commit 38504cd

Please sign in to comment.