blueloveTH hace 2 años
padre
commit
0895145529
Se han modificado 3 ficheros con 13 adiciones y 0 borrados
  1. 3 0
      .github/workflows/website.yml
  2. 5 0
      benchmarks/ldtk_cjson.py
  3. 5 0
      benchmarks/ldtk_json.py

+ 3 - 0
.github/workflows/website.yml

@@ -3,6 +3,8 @@ name: website
 on:
   push:
     branches: [ main ]
+  pull_request:
+    branches: [ main ]
 
 jobs:
   deploy:
@@ -33,3 +35,4 @@ jobs:
         build_dir: docs/.retype
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      if: github.ref == 'refs/heads/main'

+ 5 - 0
benchmarks/ldtk_cjson.py

@@ -1,3 +1,8 @@
+try:
+    import os
+except ImportError:
+    exit(0)
+
 import sys
 is_pkpy = not hasattr(sys, 'getrefcount')
 

+ 5 - 0
benchmarks/ldtk_json.py

@@ -1,3 +1,8 @@
+try:
+    import os
+except ImportError:
+    exit(0)
+
 import json
 
 _2489KB = 'WorldMap_GridVania_layout.ldtk'