Skip to content

Commit

Permalink
CI: Uninstall nomkl & 32 bit Interval tests (#59553)
Browse files Browse the repository at this point in the history
* undo numpy 2 changes?

* some interval 32 bit tests working

* Revert "undo numpy 2 changes?"

This reverts commit 39ce222.

* nomkl?

* nomkl?

* Update .github/actions/build_pandas/action.yml

* grep for nomkl

* xfail WASM

* Reverse condition
  • Loading branch information
mroeschke authored Aug 20, 2024
1 parent 7c726e9 commit 1044cf4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/actions/build_pandas/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ runs:
fi
shell: bash -el {0}

- name: Uninstall nomkl
run: |
if conda list nomkl | grep nomkl 1>/dev/null; then
conda remove nomkl -y
fi
shell: bash -el {0}

- name: Build Pandas
run: |
if [[ ${{ inputs.editable }} == "true" ]]; then
Expand Down
7 changes: 5 additions & 2 deletions pandas/tests/indexes/interval/test_interval_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import pytest

from pandas._libs.interval import IntervalTree
from pandas.compat import IS64
from pandas.compat import (
IS64,
WASM,
)

import pandas._testing as tm

Expand Down Expand Up @@ -186,7 +189,7 @@ def test_construction_overflow(self):
expected = (50 + np.iinfo(np.int64).max) / 2
assert result == expected

@pytest.mark.xfail(not IS64, reason="GH 23440")
@pytest.mark.xfail(WASM, reason="GH 23440")
@pytest.mark.parametrize(
"left, right, expected",
[
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/indexing/interval/test_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest

from pandas._libs import index as libindex
from pandas.compat import IS64
from pandas.compat import WASM

import pandas as pd
from pandas import (
Expand Down Expand Up @@ -210,7 +210,7 @@ def test_mi_intervalindex_slicing_with_scalar(self):
expected = Series([1, 6, 2, 8, 7], index=expected_index, name="value")
tm.assert_series_equal(result, expected)

@pytest.mark.xfail(not IS64, reason="GH 23440")
@pytest.mark.xfail(WASM, reason="GH 23440")
@pytest.mark.parametrize("base", [101, 1010])
def test_reindex_behavior_with_interval_index(self, base):
# GH 51826
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/indexing/interval/test_interval_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import pytest

from pandas.compat import IS64
from pandas.compat import WASM

from pandas import (
Index,
Expand Down Expand Up @@ -214,7 +214,7 @@ def test_loc_getitem_missing_key_error_message(
obj.loc[[4, 5, 6]]


@pytest.mark.xfail(not IS64, reason="GH 23440")
@pytest.mark.xfail(WASM, reason="GH 23440")
@pytest.mark.parametrize(
"intervals",
[
Expand Down

0 comments on commit 1044cf4

Please sign in to comment.