Skip to content

Commit 8f315bc

Browse files
committed
Merge branch 'master' into enh-masked-2d
2 parents 81cd3e4 + 4f5567b commit 8f315bc

File tree

705 files changed

+24143
-13348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

705 files changed

+24143
-13348
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: CI
22

33
on:
44
push:
5-
branches: [master]
5+
branches:
6+
- master
7+
- 1.3.x
68
pull_request:
79
branches:
810
- master
9-
- 1.2.x
11+
- 1.3.x
1012

1113
env:
1214
ENV_FILE: environment.yml
@@ -20,9 +22,15 @@ jobs:
2022
run:
2123
shell: bash -l {0}
2224

25+
concurrency:
26+
group: ${{ github.ref }}-checks
27+
cancel-in-progress: ${{github.event_name == 'pull_request'}}
28+
2329
steps:
2430
- name: Checkout
25-
uses: actions/checkout@v1
31+
uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 0
2634

2735
- name: Looking for unwanted patterns
2836
run: ci/code_checks.sh patterns
@@ -91,10 +99,16 @@ jobs:
9199
web_and_docs:
92100
name: Web and docs
93101
runs-on: ubuntu-latest
94-
steps:
95102

103+
concurrency:
104+
group: ${{ github.ref }}-web-docs
105+
cancel-in-progress: true
106+
107+
steps:
96108
- name: Checkout
97-
uses: actions/checkout@v1
109+
uses: actions/checkout@v2
110+
with:
111+
fetch-depth: 0
98112

99113
- name: Set up pandas
100114
uses: ./.github/actions/setup
@@ -119,15 +133,15 @@ jobs:
119133
echo "${{ secrets.server_ssh_key }}" > ~/.ssh/id_rsa
120134
chmod 600 ~/.ssh/id_rsa
121135
echo "${{ secrets.server_ip }} ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE1Kkopomm7FHG5enATf7SgnpICZ4W2bw+Ho+afqin+w7sMcrsa0je7sbztFAV8YchDkiBKnWTG4cRT+KZgZCaY=" > ~/.ssh/known_hosts
122-
if: github.event_name == 'push'
136+
if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}}
123137

124138
- name: Upload web
125139
run: rsync -az --delete --exclude='pandas-docs' --exclude='docs' --exclude='Pandas_Cheat_Sheet*' web/build/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas
126-
if: github.event_name == 'push'
140+
if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}}
127141

128142
- name: Upload dev docs
129143
run: rsync -az --delete doc/build/html/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas/pandas-docs/dev
130-
if: github.event_name == 'push'
144+
if: ${{github.event_name == 'push' && github.ref == 'refs/heads/master'}}
131145

132146
- name: Move docs into site directory
133147
run: mv doc/build/html web/build/docs
@@ -144,10 +158,15 @@ jobs:
144158
strategy:
145159
matrix:
146160
pattern: ["not slow and not network and not clipboard", "slow"]
147-
steps:
161+
concurrency:
162+
group: ${{ github.ref }}-data_manager-${{ matrix.pattern }}
163+
cancel-in-progress: true
148164

165+
steps:
149166
- name: Checkout
150-
uses: actions/checkout@v1
167+
uses: actions/checkout@v2
168+
with:
169+
fetch-depth: 0
151170

152171
- name: Set up pandas
153172
uses: ./.github/actions/setup

.github/workflows/database.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ name: Database
22

33
on:
44
push:
5-
branches: [master]
5+
branches:
6+
- master
67
pull_request:
78
branches:
89
- master
9-
- 1.2.x
10+
- 1.3.x
11+
paths-ignore:
12+
- "doc/**"
1013

1114
env:
1215
PYTEST_WORKERS: "auto"
@@ -15,17 +18,21 @@ env:
1518
COVERAGE: true
1619

1720
jobs:
18-
Linux_py37_IO:
21+
Linux_py38_IO:
1922
runs-on: ubuntu-latest
2023
defaults:
2124
run:
2225
shell: bash -l {0}
2326

2427
strategy:
2528
matrix:
26-
ENV_FILE: [ci/deps/actions-37-db-min.yaml, ci/deps/actions-37-db.yaml]
29+
ENV_FILE: [ci/deps/actions-38-db-min.yaml, ci/deps/actions-38-db.yaml]
2730
fail-fast: false
2831

32+
concurrency:
33+
group: ${{ github.ref }}-${{ matrix.ENV_FILE }}
34+
cancel-in-progress: ${{github.event_name == 'pull_request'}}
35+
2936
services:
3037
mysql:
3138
image: mysql
@@ -56,10 +63,12 @@ jobs:
5663

5764
steps:
5865
- name: Checkout
59-
uses: actions/checkout@v1
66+
uses: actions/checkout@v2
67+
with:
68+
fetch-depth: 0
6069

6170
- name: Cache conda
62-
uses: actions/cache@v1
71+
uses: actions/cache@v2
6372
env:
6473
CACHE_NUMBER: 0
6574
with:
@@ -95,7 +104,7 @@ jobs:
95104
run: python ci/print_skipped.py
96105

97106
- name: Upload coverage to Codecov
98-
uses: codecov/codecov-action@v1
107+
uses: codecov/codecov-action@v2
99108
with:
100109
flags: unittests
101110
name: codecov-pandas

.github/workflows/posix.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ name: Posix
22

33
on:
44
push:
5-
branches: [master]
5+
branches:
6+
- master
7+
- 1.3.x
68
pull_request:
79
branches:
810
- master
9-
- 1.2.x
11+
- 1.3.x
12+
paths-ignore:
13+
- "doc/**"
1014

1115
env:
1216
PYTEST_WORKERS: "auto"
@@ -21,14 +25,13 @@ jobs:
2125
strategy:
2226
matrix:
2327
settings: [
24-
[actions-37-minimum_versions.yaml, "not slow and not network and not clipboard", "", "", "", "", ""],
25-
[actions-37.yaml, "not slow and not network and not clipboard", "", "", "", "", ""],
26-
[actions-37-locale_slow.yaml, "slow", "language-pack-it xsel", "it_IT.utf8", "it_IT.utf8", "", ""],
27-
[actions-37-slow.yaml, "slow", "", "", "", "", ""],
28+
[actions-38-minimum_versions.yaml, "not slow and not network and not clipboard", "", "", "", "", ""],
29+
[actions-38-locale_slow.yaml, "slow", "language-pack-it xsel", "it_IT.utf8", "it_IT.utf8", "", ""],
2830
[actions-38.yaml, "not slow and not network and not clipboard", "", "", "", "", ""],
2931
[actions-38-slow.yaml, "slow", "", "", "", "", ""],
3032
[actions-38-locale.yaml, "not slow and not network", "language-pack-zh-hans xsel", "zh_CN.utf8", "zh_CN.utf8", "", ""],
31-
[actions-38-numpydev.yaml, "not slow and not network", "xsel", "", "", "deprecate", "-W error"],
33+
[actions-39-slow.yaml, "slow", "", "", "", "", ""],
34+
[actions-39-numpydev.yaml, "not slow and not network", "xsel", "", "", "deprecate", "-W error"],
3235
[actions-39.yaml, "not slow and not network and not clipboard", "", "", "", "", ""]
3336
]
3437
fail-fast: false
@@ -41,13 +44,18 @@ jobs:
4144
LC_ALL: ${{ matrix.settings[4] }}
4245
PANDAS_TESTING_MODE: ${{ matrix.settings[5] }}
4346
TEST_ARGS: ${{ matrix.settings[6] }}
47+
concurrency:
48+
group: ${{ github.ref }}-${{ matrix.settings[0] }}
49+
cancel-in-progress: ${{github.event_name == 'pull_request'}}
4450

4551
steps:
4652
- name: Checkout
47-
uses: actions/checkout@v1
53+
uses: actions/checkout@v2
54+
with:
55+
fetch-depth: 0
4856

4957
- name: Cache conda
50-
uses: actions/cache@v1
58+
uses: actions/cache@v2
5159
env:
5260
CACHE_NUMBER: 0
5361
with:
@@ -86,7 +94,7 @@ jobs:
8694
run: python ci/print_skipped.py
8795

8896
- name: Upload coverage to Codecov
89-
uses: codecov/codecov-action@v1
97+
uses: codecov/codecov-action@v2
9098
with:
9199
flags: unittests
92100
name: codecov-pandas

.github/workflows/pre-commit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ name: pre-commit
33
on:
44
pull_request:
55
push:
6-
branches: [master]
6+
branches:
7+
- master
8+
- 1.3.x
79

810
jobs:
911
pre-commit:
1012
runs-on: ubuntu-latest
13+
concurrency:
14+
group: ${{ github.ref }}-pre-commit
15+
cancel-in-progress: ${{github.event_name == 'pull_request'}}
1116
steps:
1217
- uses: actions/checkout@v2
1318
- uses: actions/setup-python@v2

.github/workflows/python-dev.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,30 @@ on:
44
push:
55
branches:
66
- master
7+
- 1.3.x
78
pull_request:
89
branches:
910
- master
11+
- 1.3.x
12+
paths-ignore:
13+
- "doc/**"
14+
15+
env:
16+
PYTEST_WORKERS: "auto"
17+
PANDAS_CI: 1
18+
PATTERN: "not slow and not network and not clipboard"
19+
COVERAGE: true
1020

1121
jobs:
1222
build:
1323
runs-on: ubuntu-latest
1424
name: actions-310-dev
1525
timeout-minutes: 60
1626

27+
concurrency:
28+
group: ${{ github.ref }}-dev
29+
cancel-in-progress: ${{github.event_name == 'pull_request'}}
30+
1731
steps:
1832
- uses: actions/checkout@v2
1933
with:
@@ -30,7 +44,7 @@ jobs:
3044
pip install git+https://github.com/numpy/numpy.git
3145
pip install git+https://github.com/pytest-dev/pytest.git
3246
pip install git+https://github.com/nedbat/coveragepy.git
33-
pip install cython python-dateutil pytz hypothesis pytest-xdist
47+
pip install cython python-dateutil pytz hypothesis pytest-xdist pytest-cov
3448
pip list
3549
3650
- name: Build Pandas
@@ -44,7 +58,8 @@ jobs:
4458
4559
- name: Test with pytest
4660
run: |
47-
coverage run -m pytest -m 'not slow and not network and not clipboard' pandas
61+
ci/run_tests.sh
62+
# GH 41935
4863
continue-on-error: true
4964

5065
- name: Publish test results
@@ -63,7 +78,7 @@ jobs:
6378
coverage report -m
6479
6580
- name: Upload coverage to Codecov
66-
uses: codecov/codecov-action@v1
81+
uses: codecov/codecov-action@v2
6782
with:
6883
flags: unittests
6984
name: codecov-pandas

.github/workflows/sdist.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: sdist
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 1.3.x
8+
pull_request:
9+
branches:
10+
- master
11+
- 1.3.x
12+
paths-ignore:
13+
- "doc/**"
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 60
19+
defaults:
20+
run:
21+
shell: bash -l {0}
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
python-version: ["3.8", "3.9"]
27+
concurrency:
28+
group: ${{github.ref}}-${{matrix.python-version}}-sdist
29+
cancel-in-progress: ${{github.event_name == 'pull_request'}}
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
with:
34+
fetch-depth: 0
35+
36+
- name: Set up Python
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
41+
- name: Install dependencies
42+
run: |
43+
python -m pip install --upgrade pip setuptools wheel
44+
45+
# GH 39416
46+
pip install numpy
47+
48+
- name: Build pandas sdist
49+
run: |
50+
pip list
51+
python setup.py sdist --formats=gztar
52+
53+
- uses: conda-incubator/setup-miniconda@v2
54+
with:
55+
activate-environment: pandas-sdist
56+
python-version: ${{ matrix.python-version }}
57+
58+
- name: Install pandas from sdist
59+
run: |
60+
conda list
61+
python -m pip install dist/*.gz
62+
63+
- name: Import pandas
64+
run: |
65+
cd ..
66+
conda list
67+
python -c "import pandas; pandas.show_versions();"

0 commit comments

Comments
 (0)