From 6ff2ef821b1bb682018f21b9598a787b745613e3 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 22 Apr 2021 22:08:29 -0500 Subject: [PATCH 01/25] CI: start testing py310-dev --- .github/workflows/python-dev.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/python-dev.yml diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml new file mode 100644 index 0000000000000..1ec3b8e6f2854 --- /dev/null +++ b/.github/workflows/python-dev.yml @@ -0,0 +1,39 @@ +name: Python Dev + +on: + push: + branches: [master] + pull_request: + branches: + - master + - 1.2.x + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Fetch Git Tags + run: | + git remote -v + git fetch --all --tags + + - name: Set up Python Dev Version + uses: actions/setup-python@v2 + with: + python-version: '3.10-dev' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis + + - name: Build Pandas + run: | + python setup.py build_ext -q -j2 + python -m pip install -e . --no-build-isolation --no-use-pep517 + + - name: Test with pytest + run: | + pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml \ No newline at end of file From 9e2c52241cdf74956d835ad055c26c1eacd2d34d Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Thu, 22 Apr 2021 22:19:01 -0500 Subject: [PATCH 02/25] CI: start testing py310-dev --- .github/workflows/python-dev.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 1ec3b8e6f2854..f2ede1dd8548a 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -4,9 +4,7 @@ on: push: branches: [master] pull_request: - branches: - - master - - 1.2.x + branches: [master] jobs: build: From 3b87af4828f255aeb1f073b744873a46a536fc49 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Fri, 23 Apr 2021 07:40:55 -0500 Subject: [PATCH 03/25] use pre-release numpy --- .github/workflows/python-dev.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index f2ede1dd8548a..c78cbbeb80c07 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -25,7 +25,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis + pip install numpy --pre + pip install cython python-dateutil pytz pytest pytest-xdist hypothesis - name: Build Pandas run: | @@ -34,4 +35,4 @@ jobs: - name: Test with pytest run: | - pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml \ No newline at end of file + pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml From 43db620d69742b72cebc960d320121a0e0556f88 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Fri, 23 Apr 2021 08:36:28 -0500 Subject: [PATCH 04/25] try numpy master --- .github/workflows/python-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index c78cbbeb80c07..09c96c5b4c4a7 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -25,7 +25,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - pip install numpy --pre + pip install git+https://github.com/numpy/numpy.git pip install cython python-dateutil pytz pytest pytest-xdist hypothesis - name: Build Pandas From 06dc5e6ba1e5ca27807711070ba980c02e32fa12 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Fri, 23 Apr 2021 13:39:32 -0500 Subject: [PATCH 05/25] use pytest master --- .github/workflows/python-dev.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 09c96c5b4c4a7..d9688e9d3bfc2 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -26,7 +26,8 @@ jobs: run: | python -m pip install --upgrade pip setuptools wheel pip install git+https://github.com/numpy/numpy.git - pip install cython python-dateutil pytz pytest pytest-xdist hypothesis + pip install git+https://github.com/pytest-dev/pytest.git + pip install cython python-dateutil pytz pytest-xdist hypothesis - name: Build Pandas run: | From a10c9250c733cdda86c202eb3e9931fb99220ad3 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Fri, 23 Apr 2021 20:50:42 -0500 Subject: [PATCH 06/25] add pip list --- .github/workflows/python-dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index d9688e9d3bfc2..350e29b359fbb 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -28,6 +28,7 @@ jobs: pip install git+https://github.com/numpy/numpy.git pip install git+https://github.com/pytest-dev/pytest.git pip install cython python-dateutil pytz pytest-xdist hypothesis + pip list - name: Build Pandas run: | From 52f8a062dc472f6f41cbc8c59bdd7ab1712bdb5d Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 24 Apr 2021 21:50:32 -0500 Subject: [PATCH 07/25] add build version --- .github/workflows/python-dev.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 350e29b359fbb..a18ea90125edb 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -35,6 +35,9 @@ jobs: python setup.py build_ext -q -j2 python -m pip install -e . --no-build-isolation --no-use-pep517 + - 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 --junitxml=test-data.xml From 81f23a010d8702e2f0506ecce37b1db0c2698dac Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 24 Apr 2021 22:52:21 -0500 Subject: [PATCH 08/25] try fetch tags --- .github/workflows/python-dev.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index a18ea90125edb..2bd00d5b9088b 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -12,10 +12,8 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Fetch Git Tags - run: | - git remote -v - git fetch --all --tags + with: + fetch-depth: 0 - name: Set up Python Dev Version uses: actions/setup-python@v2 From fe6f940fdd6541b7e37af63fd98019300e64a8fd Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sun, 25 Apr 2021 09:11:21 -0500 Subject: [PATCH 09/25] allow to fail --- .github/workflows/python-dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 2bd00d5b9088b..64b3c9465e59c 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -9,6 +9,7 @@ on: jobs: build: runs-on: ubuntu-latest + continue-on-error: true steps: - uses: actions/checkout@v2 From 6882f78c061653b41442ffa51cea4a7844da11c5 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sun, 25 Apr 2021 09:50:02 -0500 Subject: [PATCH 10/25] allow to fail --- .github/workflows/python-dev.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 64b3c9465e59c..e2f64d8a7cb6a 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -2,14 +2,15 @@ name: Python Dev on: push: - branches: [master] + branches: + - master pull_request: - branches: [master] + branches: + - master jobs: build: runs-on: ubuntu-latest - continue-on-error: true steps: - uses: actions/checkout@v2 @@ -35,8 +36,10 @@ jobs: python -m pip install -e . --no-build-isolation --no-use-pep517 - name: Build Version - run: python -c "import pandas; pandas.show_versions();" + run: | + python -c "import pandas; pandas.show_versions();" - name: Test with pytest run: | pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml + continue-on-error: true From 0e5fe54632ccbcb738bef4ed25a8c153632a1c1d Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sun, 25 Apr 2021 21:33:41 -0500 Subject: [PATCH 11/25] remove duplicated opt --- .github/workflows/python-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index e2f64d8a7cb6a..1f97e7fdefc38 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -41,5 +41,5 @@ jobs: - name: Test with pytest run: | - pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml + pytest -m 'not slow and not network and not clipboard' pandas continue-on-error: true From 5f2fdbf9418574ca9ae77d26c2b2dfbefd54def6 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Mon, 26 Apr 2021 08:28:46 -0500 Subject: [PATCH 12/25] rename, add coverage --- .github/workflows/python-dev.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 1f97e7fdefc38..6813cb62dd1a3 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -11,6 +11,7 @@ on: jobs: build: runs-on: ubuntu-latest + name: actions-310-dev steps: - uses: actions/checkout@v2 @@ -27,7 +28,7 @@ jobs: python -m pip install --upgrade pip setuptools wheel pip install git+https://github.com/numpy/numpy.git pip install git+https://github.com/pytest-dev/pytest.git - pip install cython python-dateutil pytz pytest-xdist hypothesis + pip install cython python-dateutil pytz pytest-xdist hypothesis pytest-cov pip list - name: Build Pandas @@ -41,5 +42,22 @@ jobs: - name: Test with pytest run: | - pytest -m 'not slow and not network and not clipboard' pandas + pytest -m 'not slow and not network and not clipboard' -n 2 --dist=loadfile --cov=pandas --cov-report=xml pandas continue-on-error: true + + - name: Publish test results + uses: actions/upload-artifact@master + with: + name: Test results + path: test-data.xml + if: failure() + + - name: Print skipped tests + run: python ci/print_skipped.py + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + flags: unittests + name: codecov-pandas + fail_ci_if_error: true From fee4bfc49050ebdd179ae5ba6c3ee6ab00ba9c81 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Mon, 26 Apr 2021 16:00:46 -0500 Subject: [PATCH 13/25] use single worker --- .github/workflows/python-dev.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 6813cb62dd1a3..637a5f674ea19 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -28,7 +28,7 @@ jobs: python -m pip install --upgrade pip setuptools wheel pip install git+https://github.com/numpy/numpy.git pip install git+https://github.com/pytest-dev/pytest.git - pip install cython python-dateutil pytz pytest-xdist hypothesis pytest-cov + pip install cython python-dateutil pytz hypothesis pytest-cov pip list - name: Build Pandas @@ -42,7 +42,7 @@ jobs: - name: Test with pytest run: | - pytest -m 'not slow and not network and not clipboard' -n 2 --dist=loadfile --cov=pandas --cov-report=xml pandas + pytest -m 'not slow and not network and not clipboard' --cov=pandas --cov-report=xml pandas continue-on-error: true - name: Publish test results From b59a3daf45769d90b17f6718e5b9a6c2ad2ba9e2 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Mon, 26 Apr 2021 21:38:53 -0500 Subject: [PATCH 14/25] set timeout, remove cov --- .github/workflows/python-dev.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 637a5f674ea19..320221427a642 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -12,6 +12,7 @@ jobs: build: runs-on: ubuntu-latest name: actions-310-dev + timeout-minutes: 60 steps: - uses: actions/checkout@v2 @@ -28,7 +29,7 @@ jobs: python -m pip install --upgrade pip setuptools wheel pip install git+https://github.com/numpy/numpy.git pip install git+https://github.com/pytest-dev/pytest.git - pip install cython python-dateutil pytz hypothesis pytest-cov + pip install cython python-dateutil pytz hypothesis pytest-xdist pip list - name: Build Pandas @@ -42,7 +43,7 @@ jobs: - name: Test with pytest run: | - pytest -m 'not slow and not network and not clipboard' --cov=pandas --cov-report=xml pandas + pytest -m 'not slow and not network and not clipboard' -n 2 --dist=loadfile pandas continue-on-error: true - name: Publish test results @@ -54,10 +55,3 @@ jobs: - name: Print skipped tests run: python ci/print_skipped.py - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - flags: unittests - name: codecov-pandas - fail_ci_if_error: true From 5696a8a34ea89cb8077a24a9a4c2b17639c0b176 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Mon, 26 Apr 2021 21:58:07 -0500 Subject: [PATCH 15/25] use single worker --- .github/workflows/python-dev.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 320221427a642..4d91f523cb499 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -29,7 +29,7 @@ jobs: python -m pip install --upgrade pip setuptools wheel pip install git+https://github.com/numpy/numpy.git pip install git+https://github.com/pytest-dev/pytest.git - pip install cython python-dateutil pytz hypothesis pytest-xdist + pip install cython python-dateutil pytz hypothesis pip list - name: Build Pandas @@ -43,7 +43,7 @@ jobs: - name: Test with pytest run: | - pytest -m 'not slow and not network and not clipboard' -n 2 --dist=loadfile pandas + pytest -m 'not slow and not network and not clipboard' pandas continue-on-error: true - name: Publish test results From a8a6788411f614a34d2f3143bf81aece7b7a1b69 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 12:12:20 -0500 Subject: [PATCH 16/25] try coverage without pytest-cov --- .github/workflows/python-dev.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 4d91f523cb499..8f88706cc0172 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -29,7 +29,7 @@ jobs: python -m pip install --upgrade pip setuptools wheel pip install git+https://github.com/numpy/numpy.git pip install git+https://github.com/pytest-dev/pytest.git - pip install cython python-dateutil pytz hypothesis + pip install cython python-dateutil pytz hypothesis coverage pip list - name: Build Pandas @@ -43,7 +43,7 @@ jobs: - name: Test with pytest run: | - pytest -m 'not slow and not network and not clipboard' pandas + coverage run -m pytest -m 'not slow and not network and not clipboard' pandas continue-on-error: true - name: Publish test results @@ -55,3 +55,14 @@ jobs: - name: Print skipped tests run: python ci/print_skipped.py + + - name: Report Coverage + run: | + coverage report -m + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + flags: unittests + name: codecov-pandas + fail_ci_if_error: true From 552f0445cf820b143d50b9c9e25f67f6927bb050 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 14:51:37 -0500 Subject: [PATCH 17/25] debug coverage --- .github/workflows/python-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 8f88706cc0172..4cf6ff7682916 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -43,7 +43,7 @@ jobs: - name: Test with pytest run: | - coverage run -m pytest -m 'not slow and not network and not clipboard' pandas + coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json continue-on-error: true - name: Publish test results From 666d005f2dbfa1ceae128aec7d3fe2304f299ba8 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 15:05:10 -0500 Subject: [PATCH 18/25] debug coverage --- .github/workflows/python-dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 4cf6ff7682916..be157862873c4 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -45,6 +45,7 @@ jobs: run: | coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json continue-on-error: true + timeout-minutes: 5 - name: Publish test results uses: actions/upload-artifact@master From 62602f81831f27b24c9add10590788511ab6d53a Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 15:51:33 -0500 Subject: [PATCH 19/25] try coverage master --- .github/workflows/python-dev.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index be157862873c4..dc0e986deb8c6 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -29,7 +29,8 @@ jobs: python -m pip install --upgrade pip setuptools wheel pip install git+https://github.com/numpy/numpy.git pip install git+https://github.com/pytest-dev/pytest.git - pip install cython python-dateutil pytz hypothesis coverage + pip install git+https://github.com/nedbat/coveragepy.git + pip install cython python-dateutil pytz hypothesis pip list - name: Build Pandas From a490f72a0436ff229f9e8ea01bd1fac6bdf3c55f Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 16:09:12 -0500 Subject: [PATCH 20/25] debug coverage --- .github/workflows/python-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index dc0e986deb8c6..9f40aceb95a64 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -44,7 +44,7 @@ jobs: - name: Test with pytest run: | - coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json + coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json/test_compression.py continue-on-error: true timeout-minutes: 5 From 90a381c632f7df45d1cc2b1ccba007301cf2155d Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 17:49:38 -0500 Subject: [PATCH 21/25] fix worker_id error --- .github/workflows/python-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 9f40aceb95a64..35a4d5a6f22a4 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -30,7 +30,7 @@ jobs: pip install git+https://github.com/numpy/numpy.git pip install git+https://github.com/pytest-dev/pytest.git pip install git+https://github.com/nedbat/coveragepy.git - pip install cython python-dateutil pytz hypothesis + pip install cython python-dateutil pytz hypothesis pytest-xdist pip list - name: Build Pandas From 58a25f51757e8426b7b21fcf6917e7d729e729d9 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 18:13:38 -0500 Subject: [PATCH 22/25] debug coverage --- .github/workflows/python-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 35a4d5a6f22a4..86885615a539b 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -44,7 +44,7 @@ jobs: - name: Test with pytest run: | - coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json/test_compression.py + coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json continue-on-error: true timeout-minutes: 5 From 89bf0228405517725b6d3cfa4bbf3e6e1a131f4f Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 18:32:38 -0500 Subject: [PATCH 23/25] debug coverage --- .github/workflows/python-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 86885615a539b..ab91afc87378c 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -44,7 +44,7 @@ jobs: - name: Test with pytest run: | - coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json + coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json/test_normalize.py continue-on-error: true timeout-minutes: 5 From e4b2449199ca3f630d1ee9cabc4a58af4e98f04c Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 19:15:43 -0500 Subject: [PATCH 24/25] debug coverage --- .github/workflows/python-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index ab91afc87378c..9b924181602d6 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -44,7 +44,7 @@ jobs: - name: Test with pytest run: | - coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json/test_normalize.py + coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json/test_pandas.py continue-on-error: true timeout-minutes: 5 From 46a1c78e4eb5a75c7152cdd869248eb23283e6b3 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Tue, 27 Apr 2021 19:49:40 -0500 Subject: [PATCH 25/25] skip tests to avoid timeout --- .github/workflows/python-dev.yml | 6 +++--- pandas/compat/__init__.py | 1 + pandas/tests/io/json/test_pandas.py | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 9b924181602d6..2643dc5ec656e 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -44,9 +44,8 @@ jobs: - name: Test with pytest run: | - coverage run -m pytest -m 'not slow and not network and not clipboard' pandas/tests/io/json/test_pandas.py + coverage run -m pytest -m 'not slow and not network and not clipboard' pandas continue-on-error: true - timeout-minutes: 5 - name: Publish test results uses: actions/upload-artifact@master @@ -56,7 +55,8 @@ jobs: if: failure() - name: Print skipped tests - run: python ci/print_skipped.py + run: | + python ci/print_skipped.py - name: Report Coverage run: | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index cddab28476ae2..af2dfe796f82d 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -23,6 +23,7 @@ PY38 = sys.version_info >= (3, 8) PY39 = sys.version_info >= (3, 9) +PY310 = sys.version_info >= (3, 10) PYPY = platform.python_implementation() == "PyPy" IS64 = sys.maxsize > 2 ** 32 diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index dc94354728ef6..3cc77aa723fe9 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -12,6 +12,7 @@ from pandas.compat import ( IS64, PY38, + PY310, is_platform_windows, ) import pandas.util._test_decorators as td @@ -27,6 +28,8 @@ ) import pandas._testing as tm +pytestmark = pytest.mark.skipif(PY310, reason="timeout with coverage") + _seriesd = tm.getSeriesData() _frame = DataFrame(_seriesd)