File tree 5 files changed +19
-74
lines changed
5 files changed +19
-74
lines changed Original file line number Diff line number Diff line change 1
- name : Windows
1
+ name : Windows-MacOS
2
2
3
3
on :
4
4
push :
21
21
22
22
jobs :
23
23
pytest :
24
- runs-on : windows-latest
25
24
defaults :
26
25
run :
27
26
shell : bash -el {0}
28
27
timeout-minutes : 90
29
28
strategy :
30
29
matrix :
30
+ os : [macos-latest, windows-latest]
31
31
env_file : [actions-38.yaml, actions-39.yaml, actions-310.yaml]
32
32
fail-fast : false
33
+ runs-on : ${{ matrix.os }}
34
+ name : ${{ format('{0} {1}', matrix.os, matrix.env_file) }}
33
35
concurrency :
34
36
# https://github.community/t/concurrecy-not-work-for-push/183068/7
35
- group : ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-windows
37
+ group : ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.os }}
36
38
cancel-in-progress : true
37
39
38
40
steps :
@@ -47,10 +49,17 @@ jobs:
47
49
mamba-version : " *"
48
50
channels : conda-forge
49
51
activate-environment : pandas-dev
50
- channel-priority : strict
52
+ channel-priority : ${{ matrix.os == 'macos-latest' && 'flexible' || ' strict' }}
51
53
environment-file : ci/deps/${{ matrix.env_file }}
52
54
use-only-tar-bz2 : true
53
55
56
+ # ImportError: 2): Library not loaded: @rpath/libssl.1.1.dylib
57
+ # Referenced from: /Users/runner/miniconda3/envs/pandas-dev/lib/libthrift.0.13.0.dylib
58
+ # Reason: image not found
59
+ - name : Upgrade pyarrow on MacOS
60
+ run : conda install -n pandas-dev -c conda-forge --no-update-deps pyarrow=6
61
+ if : ${{ matrix.os == 'macos-latest' }}
62
+
54
63
- name : Build Pandas
55
64
uses : ./.github/actions/build_pandas
56
65
Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ variables:
22
22
PANDAS_CI : 1
23
23
24
24
jobs :
25
- - template : ci/azure/posix.yml
26
- parameters :
27
- name : macOS
28
- vmImage : macOS-10.15
29
-
30
25
- job : py38_32bit
31
26
pool :
32
27
vmImage : ubuntu-18.04
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -73,15 +73,6 @@ mamba install -n pandas-dev 'setuptools<60'
73
73
echo " conda list -n pandas-dev"
74
74
conda list -n pandas-dev
75
75
76
- # From pyarrow on MacOS
77
- # ImportError: 2): Library not loaded: @rpath/libssl.1.1.dylib
78
- # Referenced from: /Users/runner/miniconda3/envs/pandas-dev/lib/libthrift.0.13.0.dylib
79
- # Reason: image not found
80
- if [[ " $( uname) " == ' Darwin' ]]; then
81
- echo " Update pyarrow for pyarrow on MacOS"
82
- conda install -n pandas-dev -c conda-forge --no-update-deps pyarrow=6
83
- fi
84
-
85
76
if [[ " $BITS32 " == " yes" ]]; then
86
77
# activate 32-bit compiler
87
78
export CONDA_BUILD=1
Original file line number Diff line number Diff line change 26
26
27
27
import numpy as np
28
28
29
- from pandas ._libs import reduction as libreduction
29
+ from pandas ._libs import (
30
+ Interval ,
31
+ reduction as libreduction ,
32
+ )
30
33
from pandas ._typing import (
31
34
ArrayLike ,
32
35
Manager ,
@@ -652,12 +655,9 @@ def value_counts(
652
655
653
656
if is_interval_dtype (lab .dtype ):
654
657
# TODO: should we do this inside II?
658
+ lab_interval = cast (Interval , lab )
655
659
656
- # error: "ndarray" has no attribute "left"
657
- # error: "ndarray" has no attribute "right"
658
- sorter = np .lexsort (
659
- (lab .left , lab .right , ids ) # type: ignore[attr-defined]
660
- )
660
+ sorter = np .lexsort ((lab_interval .left , lab_interval .right , ids ))
661
661
else :
662
662
sorter = np .lexsort ((lab , ids ))
663
663
You can’t perform that action at this time.
0 commit comments