From 57bf3f9eb2200b366705512c5610a6555d132481 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Wed, 26 May 2021 16:50:35 -0500 Subject: [PATCH 01/12] CI: sdist test #39417 --- .github/workflows/sdist.yml | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/sdist.yml diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml new file mode 100644 index 0000000000000..ce2f2429dfb61 --- /dev/null +++ b/.github/workflows/sdist.yml @@ -0,0 +1,55 @@ +name: sdist Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + - 1.2.x + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 60 + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + pip install numpy cython python-dateutil pytz hypothesis pytest pytest-xdist + pip list + + - name: Build Pandas sdist + run: | + python setup.py sdist --formats=gztar + + - name: Install Pandas From sdist + run: | + pip install pandas/dist/*.gz + + - name: Build Version + run: | + python -c "import pandas; pandas.show_versions();" + + - name: Test with pytest + run: | + pytest -m 'not slow and not network and not clipboard' pandas + continue-on-error: true + + - name: Publish test results + uses: actions/upload-artifact@master + with: + name: Test results + path: test-data.xml + if: failure() From 7fe76c8f7acf15d42210c8ced3a5fca3674f5ce4 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Wed, 26 May 2021 18:06:09 -0500 Subject: [PATCH 02/12] fix typo --- .github/workflows/sdist.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index ce2f2429dfb61..3991281ff6e55 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -1,4 +1,4 @@ -name: sdist Test +name: sdist on: push: @@ -36,7 +36,7 @@ jobs: - name: Install Pandas From sdist run: | - pip install pandas/dist/*.gz + pip install dist/*.gz - name: Build Version run: | From c1e290472979d63745d2a149100e8679fc7b3e88 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Wed, 26 May 2021 22:18:27 -0500 Subject: [PATCH 03/12] fix test commend --- .github/workflows/sdist.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 3991281ff6e55..a014af7c0f451 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -44,7 +44,7 @@ jobs: - name: Test with pytest run: | - pytest -m 'not slow and not network and not clipboard' pandas + python -c "import pandas; pandas.test(extra_args=['-m not clipboard', '--skip-slow', '--skip-network', '--skip-db', '-n=2'])" continue-on-error: true - name: Publish test results From c621f0df67109ca45d82b208068040c8be6366e4 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 27 May 2021 14:45:53 -0500 Subject: [PATCH 04/12] build pandas --- .github/workflows/sdist.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index a014af7c0f451..6639e34c9eb1f 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -32,6 +32,7 @@ jobs: - name: Build Pandas sdist run: | + python setup.py build_ext -q -j2 python setup.py sdist --formats=gztar - name: Install Pandas From sdist From dce7af77022ec4f3a1e2b88a274bf339facd06c2 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 27 May 2021 15:54:54 -0500 Subject: [PATCH 05/12] remove allowed failure --- .github/workflows/sdist.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 6639e34c9eb1f..480bd2bac1910 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -12,6 +12,7 @@ on: jobs: build: runs-on: ubuntu-latest + name: sdist test timeout-minutes: 60 steps: @@ -46,7 +47,6 @@ jobs: - name: Test with pytest run: | python -c "import pandas; pandas.test(extra_args=['-m not clipboard', '--skip-slow', '--skip-network', '--skip-db', '-n=2'])" - continue-on-error: true - name: Publish test results uses: actions/upload-artifact@master From 458e3898ff49471b340ff1cd2ae6bd8e6a17fb1a Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 17 Jun 2021 10:17:01 -0500 Subject: [PATCH 06/12] update sdist build --- .github/workflows/sdist.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 480bd2bac1910..4b2594553a9e1 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -8,6 +8,9 @@ on: branches: - master - 1.2.x + - 1.3.x + paths-ignore: + - "doc/**" jobs: build: @@ -28,16 +31,16 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - pip install numpy cython python-dateutil pytz hypothesis pytest pytest-xdist + pip install numpy python-dateutil pytz pip list - name: Build Pandas sdist run: | - python setup.py build_ext -q -j2 python setup.py sdist --formats=gztar - name: Install Pandas From sdist run: | + pip install cython hypothesis pytest pytest-xdist pip install dist/*.gz - name: Build Version From cbcbe0444a81b726f30ee6c7b8b96f25fd0dce7f Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 17 Jun 2021 12:04:40 -0500 Subject: [PATCH 07/12] update sdist ci --- .github/workflows/sdist.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 4b2594553a9e1..34d8bc464a383 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -17,6 +17,10 @@ jobs: runs-on: ubuntu-latest name: sdist test timeout-minutes: 60 + strategy: + fail-fast: false + matrix: + python-version: ["3.7", "3.8", "3.9"] steps: - uses: actions/checkout@v2 @@ -26,34 +30,29 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.8' + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - pip install numpy python-dateutil pytz - pip list + pip install numpy - name: Build Pandas sdist run: | + pip list python setup.py sdist --formats=gztar + - uses: conda-incubator/setup-miniconda@v2 + with: + activate-environment: pandas-sdist + python-version: ${{ matrix.python-version }} + - name: Install Pandas From sdist run: | - pip install cython hypothesis pytest pytest-xdist - pip install dist/*.gz + conda install cython + python -m pip install dist/*.gz - name: Build Version run: | + cd .. python -c "import pandas; pandas.show_versions();" - - - name: Test with pytest - run: | - python -c "import pandas; pandas.test(extra_args=['-m not clipboard', '--skip-slow', '--skip-network', '--skip-db', '-n=2'])" - - - name: Publish test results - uses: actions/upload-artifact@master - with: - name: Test results - path: test-data.xml - if: failure() From 5f4425ddfee4f22ea3c18fb136427757e0268673 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 17 Jun 2021 12:07:11 -0500 Subject: [PATCH 08/12] update sdist ci --- .github/workflows/sdist.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 34d8bc464a383..fb5deb5450e7d 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -49,10 +49,13 @@ jobs: - name: Install Pandas From sdist run: | - conda install cython + conda install cython numpy + conda list python -m pip install dist/*.gz - name: Build Version run: | cd .. + conda install python-dateutil pytz + conda list python -c "import pandas; pandas.show_versions();" From df733f723588051a329f56663e52e7a55b117c68 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 17 Jun 2021 12:27:34 -0500 Subject: [PATCH 09/12] update sdist ci --- .github/workflows/sdist.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index fb5deb5450e7d..916bad8c5177c 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -49,6 +49,7 @@ jobs: - name: Install Pandas From sdist run: | + conda activate pandas-sdist conda install cython numpy conda list python -m pip install dist/*.gz From e14374d702591b0436f98e114ea19440ab944a65 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 17 Jun 2021 12:31:43 -0500 Subject: [PATCH 10/12] update sdist ci --- .github/workflows/sdist.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 916bad8c5177c..c7f34e685167f 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -15,8 +15,11 @@ on: jobs: build: runs-on: ubuntu-latest - name: sdist test timeout-minutes: 60 + defaults: + run: + shell: bash -l {0} + strategy: fail-fast: false matrix: @@ -49,7 +52,6 @@ jobs: - name: Install Pandas From sdist run: | - conda activate pandas-sdist conda install cython numpy conda list python -m pip install dist/*.gz From 390982d579bd7fa3a87e54894ee96bb4a6185683 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 17 Jun 2021 14:58:40 -0500 Subject: [PATCH 11/12] remove dependency --- .github/workflows/sdist.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index c7f34e685167f..6f4c9af61c838 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -52,13 +52,11 @@ jobs: - name: Install Pandas From sdist run: | - conda install cython numpy conda list python -m pip install dist/*.gz - name: Build Version run: | cd .. - conda install python-dateutil pytz conda list python -c "import pandas; pandas.show_versions();" From 6b47cab6155644c32f6ae156e555c74abee4e85e Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Fri, 18 Jun 2021 10:22:18 -0500 Subject: [PATCH 12/12] fix step name --- .github/workflows/sdist.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 6f4c9af61c838..0c2e30a74bbdb 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -38,9 +38,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel + + # GH 39416 pip install numpy - - name: Build Pandas sdist + - name: Build pandas sdist run: | pip list python setup.py sdist --formats=gztar @@ -50,12 +52,12 @@ jobs: activate-environment: pandas-sdist python-version: ${{ matrix.python-version }} - - name: Install Pandas From sdist + - name: Install pandas from sdist run: | conda list python -m pip install dist/*.gz - - name: Build Version + - name: Import pandas run: | cd .. conda list