Skip to content

Commit bc887f9

Browse files
committed
Merging master
2 parents 0958554 + 015c0c0 commit bc887f9

File tree

1,231 files changed

+77044
-54409
lines changed

Some content is hidden

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

1,231 files changed

+77044
-54409
lines changed

.github/ISSUE_TEMPLATE/documentation_improvement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ labels: "Docs, Needs Triage"
99

1010
#### Location of the documentation
1111

12-
[this should provide the location of the documentation, e.g. "pandas.read_csv" or the URL of the documentation, e.g. "https://dev.pandas.io/docs/reference/api/pandas.read_csv.html"]
12+
[this should provide the location of the documentation, e.g. "pandas.read_csv" or the URL of the documentation, e.g. "https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html"]
1313

1414
**Note**: You can check the latest versions of the docs on `master` [here](https://pandas.pydata.org/docs/dev/).
1515

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
- [ ] closes #xxxx
22
- [ ] tests added / passed
3-
- [ ] passes `black pandas`
4-
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
3+
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
54
- [ ] whatsnew entry
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build pandas
2+
description: Rebuilds the C extensions and installs pandas
3+
runs:
4+
using: composite
5+
steps:
6+
7+
- name: Environment Detail
8+
run: |
9+
conda info
10+
conda list
11+
shell: bash -l {0}
12+
13+
- name: Build Pandas
14+
run: |
15+
python setup.py build_ext -j 2
16+
python -m pip install -e . --no-build-isolation --no-use-pep517
17+
shell: bash -l {0}

.github/actions/setup/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Set up pandas
2+
description: Runs all the setup steps required to have a built pandas ready to use
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Setting conda path
7+
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
8+
shell: bash -l {0}
9+
10+
- name: Setup environment and build pandas
11+
run: ci/setup_env.sh
12+
shell: bash -l {0}

.github/workflows/ci.yml

Lines changed: 92 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,74 +2,74 @@ name: CI
22

33
on:
44
push:
5-
branches: master
5+
branches: [master]
66
pull_request:
77
branches:
88
- master
99
- 1.2.x
1010

1111
env:
1212
ENV_FILE: environment.yml
13+
PANDAS_CI: 1
1314

1415
jobs:
1516
checks:
1617
name: Checks
1718
runs-on: ubuntu-latest
18-
steps:
19-
20-
- name: Setting conda path
21-
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
19+
defaults:
20+
run:
21+
shell: bash -l {0}
2222

23+
steps:
2324
- name: Checkout
2425
uses: actions/checkout@v1
2526

2627
- name: Looking for unwanted patterns
2728
run: ci/code_checks.sh patterns
2829
if: always()
2930

30-
- name: Setup environment and build pandas
31-
run: ci/setup_env.sh
32-
if: always()
31+
- name: Cache conda
32+
uses: actions/cache@v2
33+
with:
34+
path: ~/conda_pkgs_dir
35+
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }}
36+
37+
- uses: conda-incubator/setup-miniconda@v2
38+
with:
39+
activate-environment: pandas-dev
40+
channel-priority: strict
41+
environment-file: ${{ env.ENV_FILE }}
42+
use-only-tar-bz2: true
43+
44+
- name: Build Pandas
45+
uses: ./.github/actions/build_pandas
3346

3447
- name: Linting
35-
run: |
36-
source activate pandas-dev
37-
ci/code_checks.sh lint
48+
run: ci/code_checks.sh lint
3849
if: always()
3950

4051
- name: Checks on imported code
41-
run: |
42-
source activate pandas-dev
43-
ci/code_checks.sh code
52+
run: ci/code_checks.sh code
4453
if: always()
4554

4655
- name: Running doctests
47-
run: |
48-
source activate pandas-dev
49-
ci/code_checks.sh doctests
56+
run: ci/code_checks.sh doctests
5057
if: always()
5158

5259
- name: Docstring validation
53-
run: |
54-
source activate pandas-dev
55-
ci/code_checks.sh docstrings
60+
run: ci/code_checks.sh docstrings
5661
if: always()
5762

5863
- name: Typing validation
59-
run: |
60-
source activate pandas-dev
61-
ci/code_checks.sh typing
64+
run: ci/code_checks.sh typing
6265
if: always()
6366

6467
- name: Testing docstring validation script
65-
run: |
66-
source activate pandas-dev
67-
pytest --capture=no --strict-markers scripts
68+
run: pytest --capture=no --strict-markers scripts
6869
if: always()
6970

7071
- name: Running benchmarks
7172
run: |
72-
source activate pandas-dev
7373
cd asv_bench
7474
asv check -E existing
7575
git remote add upstream https://github.com/pandas-dev/pandas.git
@@ -93,20 +93,16 @@ jobs:
9393
runs-on: ubuntu-latest
9494
steps:
9595

96-
- name: Setting conda path
97-
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
98-
9996
- name: Checkout
10097
uses: actions/checkout@v1
10198

102-
- name: Setup environment and build pandas
103-
run: ci/setup_env.sh
99+
- name: Set up pandas
100+
uses: ./.github/actions/setup
104101

105102
- name: Build website
106103
run: |
107104
source activate pandas-dev
108105
python web/pandas_web.py web/pandas --target-path=web/build
109-
110106
- name: Build documentation
111107
run: |
112108
source activate pandas-dev
@@ -132,3 +128,66 @@ jobs:
132128
- name: Upload dev docs
133129
run: rsync -az --delete doc/build/html/ docs@${{ secrets.server_ip }}:/usr/share/nginx/pandas/pandas-docs/dev
134130
if: github.event_name == 'push'
131+
132+
- name: Move docs into site directory
133+
run: mv doc/build/html web/build/docs
134+
- name: Save website as an artifact
135+
uses: actions/upload-artifact@v2
136+
with:
137+
name: website
138+
path: web/build
139+
retention-days: 14
140+
141+
data_manager:
142+
name: Test experimental data manager
143+
runs-on: ubuntu-latest
144+
steps:
145+
146+
- name: Checkout
147+
uses: actions/checkout@v1
148+
149+
- name: Set up pandas
150+
uses: ./.github/actions/setup
151+
152+
- name: Run tests
153+
env:
154+
PANDAS_DATA_MANAGER: array
155+
run: |
156+
source activate pandas-dev
157+
158+
pytest pandas/tests/frame/
159+
pytest pandas/tests/reductions/
160+
pytest pandas/tests/generic/test_generic.py
161+
pytest pandas/tests/arithmetic/
162+
pytest pandas/tests/groupby/
163+
pytest pandas/tests/resample/
164+
pytest pandas/tests/reshape/merge
165+
pytest pandas/tests/series/
166+
167+
# indexing subset (temporary since other tests don't pass yet)
168+
pytest pandas/tests/indexing/multiindex/test_setitem.py::TestMultiIndexSetItem::test_astype_assignment_with_dups
169+
pytest pandas/tests/indexing/multiindex/test_setitem.py::TestMultiIndexSetItem::test_frame_setitem_multi_column
170+
171+
pytest pandas/tests/api/
172+
pytest pandas/tests/arrays/
173+
pytest pandas/tests/base/
174+
pytest pandas/tests/computation/
175+
pytest pandas/tests/config/
176+
pytest pandas/tests/dtypes/
177+
pytest pandas/tests/generic/
178+
pytest pandas/tests/indexes/
179+
pytest pandas/tests/io/test_* -m "not slow and not clipboard"
180+
pytest pandas/tests/io/excel/ -m "not slow and not clipboard"
181+
pytest pandas/tests/io/formats/ -m "not slow and not clipboard"
182+
pytest pandas/tests/io/parser/ -m "not slow and not clipboard"
183+
pytest pandas/tests/io/sas/ -m "not slow and not clipboard"
184+
pytest pandas/tests/io/xml/ -m "not slow and not clipboard"
185+
pytest pandas/tests/libs/
186+
pytest pandas/tests/plotting/
187+
pytest pandas/tests/scalar/
188+
pytest pandas/tests/strings/
189+
pytest pandas/tests/tools/
190+
pytest pandas/tests/tseries/
191+
pytest pandas/tests/tslibs/
192+
pytest pandas/tests/util/
193+
pytest pandas/tests/window/

.github/workflows/comment_bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install-pre-commit
3030
run: python -m pip install --upgrade pre-commit
3131
- name: Run pre-commit
32-
run: pre-commit run --all-files || (exit 0)
32+
run: pre-commit run --from-ref=origin/master --to-ref=HEAD --all-files || (exit 0)
3333
- name: Commit results
3434
run: |
3535
git config user.name "$(git log -1 --pretty=format:%an)"

.github/workflows/database.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,16 @@ jobs:
7272
environment-file: ${{ env.ENV_FILE }}
7373
use-only-tar-bz2: true
7474

75-
- name: Environment Detail
76-
run: |
77-
conda info
78-
conda list
79-
8075
- name: Build Pandas
81-
run: |
82-
python setup.py build_ext -j 2
83-
python -m pip install -e . --no-build-isolation --no-use-pep517
76+
uses: ./.github/actions/build_pandas
8477

8578
- name: Test
8679
run: ci/run_tests.sh
8780
if: always()
8881

82+
- name: Build Version
83+
run: pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd
84+
8985
- name: Publish test results
9086
uses: actions/upload-artifact@master
9187
with:
@@ -155,20 +151,16 @@ jobs:
155151
environment-file: ${{ env.ENV_FILE }}
156152
use-only-tar-bz2: true
157153

158-
- name: Environment Detail
159-
run: |
160-
conda info
161-
conda list
162-
163154
- name: Build Pandas
164-
run: |
165-
python setup.py build_ext -j 2
166-
python -m pip install -e . --no-build-isolation --no-use-pep517
155+
uses: ./.github/actions/build_pandas
167156

168157
- name: Test
169158
run: ci/run_tests.sh
170159
if: always()
171160

161+
- name: Build Version
162+
run: pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd
163+
172164
- name: Publish test results
173165
uses: actions/upload-artifact@master
174166
with:
@@ -178,3 +170,11 @@ jobs:
178170

179171
- name: Print skipped tests
180172
run: python ci/print_skipped.py
173+
174+
- name: Upload coverage to Codecov
175+
uses: codecov/codecov-action@v1
176+
with:
177+
files: /tmp/test_coverage.xml
178+
flags: unittests
179+
name: codecov-pandas
180+
fail_ci_if_error: true

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ asv_bench/pandas/
110110
doc/source/generated
111111
doc/source/user_guide/styled.xlsx
112112
doc/source/reference/api
113-
doc/source/_static
113+
doc/source/_static/*.html
114114
doc/source/vbench
115115
doc/source/vbench.rst
116116
doc/source/index.rst

0 commit comments

Comments
 (0)