Skip to content

CI: enable arm64 build on drone.io #39730 #39742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
70d0618
enable arm64 build on drone.io #39730
fangchenli Feb 11, 2021
9684d73
enable ci on pr
fangchenli Feb 11, 2021
4a289a9
check arch
fangchenli Feb 11, 2021
0e2659c
fixi arch
fangchenli Feb 11, 2021
4b68143
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Feb 11, 2021
61a613d
update pip
fangchenli Feb 11, 2021
938c751
fix install
fangchenli Feb 11, 2021
2cf90ef
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Feb 13, 2021
a2d5f0e
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Feb 15, 2021
2988f27
use minimal deps
fangchenli Feb 15, 2021
80670a9
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Feb 20, 2021
46237e7
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Feb 21, 2021
b558c72
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Feb 23, 2021
d5e95ea
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Feb 25, 2021
cae3548
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Mar 1, 2021
5eb3ebf
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Mar 7, 2021
88236f2
seperate steps, add git tags
fangchenli Mar 8, 2021
c4552ba
seperate steps, add shared venv
fangchenli Mar 8, 2021
b68fe1c
xfail arm64 tests
fangchenli Mar 8, 2021
73dfa45
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Mar 8, 2021
5e8d6fc
sort import
fangchenli Mar 8, 2021
fc41c0c
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Mar 9, 2021
66f0e3e
remove arm_slow marker
fangchenli Mar 9, 2021
e8d5713
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Mar 10, 2021
3bc9d12
skip slow arm test
fangchenli Mar 10, 2021
7fc92d9
sort import
fangchenli Mar 10, 2021
99de571
skip slow arm64 tests
fangchenli Mar 12, 2021
accad8f
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Mar 12, 2021
db97957
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Mar 12, 2021
9281217
Merge remote-tracking branch 'upstream/master' into drone-ci
fangchenli Mar 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
kind: pipeline
type: docker
name: py37-arm64

platform:
arch: arm64

steps:
- name: Fetch Tags
image: alpine/git
commands:
- git fetch --tags

- name: Setup Environment
image: python:3.7
commands:
- python -m venv pandas-dev
- . pandas-dev/bin/activate
- python -m pip install --upgrade pip setuptools
- python -m pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis

- name: Build Pandas
image: python:3.7
commands:
- . pandas-dev/bin/activate
- python setup.py build_ext -j 4
- python -m pip install -e . --no-build-isolation --no-use-pep517

- name: Run Test
image: python:3.7
commands:
- . pandas-dev/bin/activate
- pytest -m "(not slow and not network and not clipboard and not arm_slow)" -n 2 --dist=loadfile -s --strict-markers --durations=30 --junitxml=test-data.xml pandas

trigger:
branch:
- master
- feature/*
event:
- push
- pull_request
78 changes: 0 additions & 78 deletions .travis.yml

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions pandas/compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
PY39 = sys.version_info >= (3, 9)
PYPY = platform.python_implementation() == "PyPy"
IS64 = sys.maxsize > 2 ** 32
ARM64 = platform.machine() in ["arm64", "aarch64"]


def set_function_name(f: F, name: str, cls) -> F:
Expand Down
3 changes: 3 additions & 0 deletions pandas/tests/indexes/interval/test_astype.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import numpy as np
import pytest

from pandas.compat import ARM64

from pandas.core.dtypes.dtypes import (
CategoricalDtype,
IntervalDtype,
Expand Down Expand Up @@ -168,6 +170,7 @@ def test_subtype_integer_with_non_integer_borders(self, subtype):
)
tm.assert_index_equal(result, expected)

@pytest.mark.xfail(ARM64, reason="GH 38923")
def test_subtype_integer_errors(self):
# float64 -> uint64 fails with negative values
index = interval_range(-10.0, 10.0)
Expand Down
4 changes: 3 additions & 1 deletion pandas/tests/tools/test_to_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from numpy import iinfo
import pytest

from pandas.compat import ARM64

import pandas as pd
from pandas import (
DataFrame,
Expand Down Expand Up @@ -752,7 +754,7 @@ def test_to_numeric_from_nullable_string(values, expected):
"UInt64",
"signed",
"UInt64",
marks=pytest.mark.xfail(reason="GH38798"),
marks=pytest.mark.xfail(not ARM64, reason="GH38798"),
),
([1, 1], "Int64", "unsigned", "UInt8"),
([1.0, 1.0], "Float32", "unsigned", "UInt8"),
Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/window/test_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import numpy as np
import pytest

from pandas.compat import ARM64
from pandas.errors import UnsupportedFunctionCall

from pandas import (
Expand Down Expand Up @@ -896,6 +897,7 @@ def test_rolling_sem(frame_or_series):
tm.assert_series_equal(result, expected)


@pytest.mark.xfail(ARM64, reason="GH 38921")
@pytest.mark.parametrize(
("func", "third_value", "values"),
[
Expand Down