diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index b5f86506..04e8443d 100644 --- a/.github/workflows/website.yml +++ b/.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' diff --git a/benchmarks/ldtk_cjson.py b/benchmarks/ldtk_cjson.py index 6310b0e7..20965d2b 100644 --- a/benchmarks/ldtk_cjson.py +++ b/benchmarks/ldtk_cjson.py @@ -1,3 +1,8 @@ +try: + import os +except ImportError: + exit(0) + import sys is_pkpy = not hasattr(sys, 'getrefcount') diff --git a/benchmarks/ldtk_json.py b/benchmarks/ldtk_json.py index b2277937..fec2bf1f 100644 --- a/benchmarks/ldtk_json.py +++ b/benchmarks/ldtk_json.py @@ -1,3 +1,8 @@ +try: + import os +except ImportError: + exit(0) + import json _2489KB = 'WorldMap_GridVania_layout.ldtk'