From 52144e7f36d8b708029f8fff089eb855e37169da Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 25 Jun 2023 13:28:04 +0200 Subject: [PATCH] Re-enabled and ran static checks. --- .github/workflows/build.yml | 40 ++++++++++++++++++------------------- SConstruct | 2 +- pythonscript/pythonscript.c | 2 +- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6137af5..b29a2b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,26 +17,26 @@ env: jobs: -# static-checks: -# name: '📊 Static checks' -# runs-on: ubuntu-latest -# steps: -# - name: Checkout -# uses: actions/checkout@f1d3225b5376a0791fdee5a0e8eac5289355e43a # pin@v2 -# with: -# submodules: true -# - name: Set up Python -# uses: actions/setup-python@0291cefc54fa79cd1986aee8fa5ecb89ad4defea # pin@v2 -# with: -# python-version: ${{ env.PYTHON_VERSION }} -# - name: Bootstrap -# run: | -# set -eux -# python --version -# pip install pre-commit -# - name: Pre-commit hooks check -# run: | -# pre-commit run --all-files --show-diff-on-failure + static-checks: + name: '📊 Static checks' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@f1d3225b5376a0791fdee5a0e8eac5289355e43a # pin@v2 + with: + submodules: true + - name: Set up Python + uses: actions/setup-python@0291cefc54fa79cd1986aee8fa5ecb89ad4defea # pin@v2 + with: + python-version: ${{ env.PYTHON_VERSION }} + - name: Bootstrap + run: | + set -eux + python --version + pip install pre-commit + - name: Pre-commit hooks check + run: | + pre-commit run --all-files --show-diff-on-failure ################################################################################# diff --git a/SConstruct b/SConstruct index 1b916ec..004bf89 100644 --- a/SConstruct +++ b/SConstruct @@ -229,7 +229,7 @@ if env["platform"].startswith("windows") or env["platform"].startswith("osx"): release_target = "build/pandemonium-python-${release_suffix}-${platform}.zip" else: release_target = "build/pandemonium-python-${release_suffix}-${platform}.tar.bz2" - + release = env.Command(release_target, env["DIST_ROOT"], generate_release) env.Alias("release", release) env.AlwaysBuild("release") diff --git a/pythonscript/pythonscript.c b/pythonscript/pythonscript.c index 474f434..13737ee 100644 --- a/pythonscript/pythonscript.c +++ b/pythonscript/pythonscript.c @@ -172,7 +172,7 @@ GDN_EXPORT void pandemonium_gdnative_init(pandemonium_gdnative_init_options *opt ++i; } pythonhome[i] = '\0'; - + pythonscript_gdapi10->pandemonium_string_destroy(&_pythonhome); Py_SetPythonHome(pythonhome); }