فهرست منبع

verify gui_core_lib is available

dinhlongnguyen 1 سال پیش
والد
کامیت
10f44c377b
4فایلهای تغییر یافته به همراه37 افزوده شده و 2 حذف شده
  1. 10 1
      .github/workflows/packaging.yml
  2. 9 0
      .github/workflows/publish.yml
  3. 9 0
      .github/workflows/release-dev.yml
  4. 9 1
      .github/workflows/release.yml

+ 10 - 1
.github/workflows/packaging.yml

@@ -14,7 +14,7 @@ on:
 
 jobs:
   standard-packages:
-    timeout-minutes: 15
+    timeout-minutes: 30
     strategy:
       matrix:
         python-versions: [ '3.8', '3.9', '3.10', '3.11' ]
@@ -36,6 +36,15 @@ jobs:
           python -c "import taipy as tp; tp.Scenario"
           python -c "import taipy as tp; tp.gui"
           python -c "import taipy as tp; tp.rest"
+          
+          echo """
+          import taipy
+          from pathlib import Path
+          taipy_gui_core_path = Path(taipy.__file__).absolute().parent / 'gui_core' / 'lib' / 'taipy-gui-core.js'
+          if not taipy_gui_core_path.exists():
+              raise FileNotFoundError(f'taipy-gui-core.js not found in {taipy_gui_core_path}')
+          """ > /tmp/verify_gui_core.py
+          python /tmp/verify_gui_core.py
 
       - name: Notify user if failed
         if: failure()

+ 9 - 0
.github/workflows/publish.yml

@@ -101,3 +101,12 @@ jobs:
           python -c "import taipy as tp; tp.Scenario"
           python -c "import taipy as tp; tp.gui"
           python -c "import taipy as tp; tp.rest"
+
+          echo """
+          import taipy
+          from pathlib import Path
+          taipy_gui_core_path = Path(taipy.__file__).absolute().parent / 'gui_core' / 'lib' / 'taipy-gui-core.js'
+          if not taipy_gui_core_path.exists():
+              raise FileNotFoundError(f'taipy-gui-core.js not found in {taipy_gui_core_path}')
+          """ > /tmp/verify_gui_core.py
+          python /tmp/verify_gui_core.py

+ 9 - 0
.github/workflows/release-dev.yml

@@ -118,6 +118,15 @@ jobs:
           python -c "import taipy as tp; tp.gui"
           python -c "import taipy as tp; tp.rest"
 
+          echo """
+          import taipy
+          from pathlib import Path
+          taipy_gui_core_path = Path(taipy.__file__).absolute().parent / 'gui_core' / 'lib' / 'taipy-gui-core.js'
+          if not taipy_gui_core_path.exists():
+              raise FileNotFoundError(f'taipy-gui-core.js not found in {taipy_gui_core_path}')
+          """ > /tmp/verify_gui_core.py
+          python /tmp/verify_gui_core.py
+
       - name: Extract commit hash
         shell: bash
         run: echo "HASH=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

+ 9 - 1
.github/workflows/release.yml

@@ -71,7 +71,6 @@ jobs:
           python -m pip install --upgrade pip
           pip install build
           # install taipy-gui from based on setup.py version
-          pip install "{{ steps.taipy_gui_version.outputs.VERSION }}"
 
       - name: Build and test the package
         run: |
@@ -82,6 +81,15 @@ jobs:
           python -c "import taipy as tp; tp.gui"
           python -c "import taipy as tp; tp.rest"
 
+          echo """
+          import taipy
+          from pathlib import Path
+          taipy_gui_core_path = Path(taipy.__file__).absolute().parent / 'gui_core' / 'lib' / 'taipy-gui-core.js'
+          if not taipy_gui_core_path.exists():
+              raise FileNotFoundError(f'taipy-gui-core.js not found in {taipy_gui_core_path}')
+          """ > /tmp/verify_gui_core.py
+          python /tmp/verify_gui_core.py
+
       - name: Extract commit hash
         shell: bash
         run: echo "HASH=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT