From 3433e513205c4dacafef20b42fc3bdaad838c9f8 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 15 Aug 2024 15:44:35 -0700 Subject: [PATCH] Try multiline powershell https://github.com/simonw/datasette/pull/2339 --- .github/workflows/experiment.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/experiment.yml b/.github/workflows/experiment.yml index 5c608f9..b7d7f03 100644 --- a/.github/workflows/experiment.yml +++ b/.github/workflows/experiment.yml @@ -34,5 +34,14 @@ jobs: run: echo $PWD\spatialite-loadable-modules-5.0.0-win-amd64 - name: Verify installation run: | - python -c "import sqlite3; db = sqlite3.Connection(':memory:'); db.enable_load_extension(True); db.load_extension('$env:GITHUB_WORKSPACE\spatialite-loadable-modules-5.0.0-win-amd64\mod_spatialite.dll'); print(db.execute('select spatialite_version()').fetchall())" + python -c @" + import sqlite3, os + spatialite_path = os.path.join(os.environ['GITHUB_WORKSPACE'], 'spatialite-loadable-modules-5.0.0-win-amd64', 'mod_spatialite.dll') + print(f'Checking path: {spatialite_path}') + assert os.path.exists(spatialite_path), f'SpatiaLite module not found at: {spatialite_path}' + db = sqlite3.Connection(':memory:') + db.enable_load_extension(True) + db.load_extension(spatialite_path) + print(db.execute('select spatialite_version()').fetchall()) + "@ # datasette --version