This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch try_fix_python
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit 883629cc67ee07aaf7c3f676a6ec7b5de8bcf730
Author: HTHou <[email protected]>
AuthorDate: Sun Aug 4 23:32:43 2024 +0800

    try fixing win
---
 .github/workflows/unit-test.yml | 7 ++++---
 python/requirements.txt         | 2 +-
 python/test.py                  | 3 ---
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml
index 93e95a80..c5668d83 100644
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test.yml
@@ -8,6 +8,7 @@ on:
     branches:
       - develop
       - iotdb
+      - try_fix_python
     paths-ignore:
       - 'docs/**'
   pull_request:
@@ -38,8 +39,8 @@ jobs:
       fail-fast: false
       max-parallel: 20
       matrix:
-        java: [ 8, 17, 21 ]
-        os: [ ubuntu-latest, macos-latest, windows-latest ]
+        java: [ 21 ]
+        os: [ windows-latest ]
     runs-on: ${{ matrix.os }}
 
     steps:
@@ -81,4 +82,4 @@ jobs:
       - name: Build and test with Maven
         shell: bash
         run: |
-          ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P 
with-java,with-cpp,with-python clean verify
+          ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P 
with-cpp,with-python clean verify
diff --git a/python/requirements.txt b/python/requirements.txt
index 0c82a92b..e224cd40 100644
--- a/python/requirements.txt
+++ b/python/requirements.txt
@@ -18,7 +18,7 @@
 #
 
 cython==3.0.10
-numpy==1.26.4
+numpy==2.0.1
 pandas==2.2.2
 setuptools==70.0.0
 
diff --git a/python/test.py b/python/test.py
index 29fb6c24..ebbea6fa 100644
--- a/python/test.py
+++ b/python/test.py
@@ -73,9 +73,6 @@ def test_write_tsfile():
 
 # test reading data
 def test_read_tsfile():
-    # skip test on windows because of the bug in the tsfile library
-    if platform.system() == "Windows":
-        return
     # test read a non-existent file
     with ut.TestCase().assertRaises(FileNotFoundError):
         ts.read_tsfile(DATA_PATH + "/notexist.tsfile", TABLE_NAME, ["level", 
"num"])

Reply via email to