Skip to content

Commit 3433e51

Browse files
authored
Try multiline powershell
simonw/datasette#2339
1 parent b141c3e commit 3433e51

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/experiment.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,14 @@ jobs:
3434
run: echo $PWD\spatialite-loadable-modules-5.0.0-win-amd64
3535
- name: Verify installation
3636
run: |
37-
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())"
37+
python -c @"
38+
import sqlite3, os
39+
spatialite_path = os.path.join(os.environ['GITHUB_WORKSPACE'], 'spatialite-loadable-modules-5.0.0-win-amd64', 'mod_spatialite.dll')
40+
print(f'Checking path: {spatialite_path}')
41+
assert os.path.exists(spatialite_path), f'SpatiaLite module not found at: {spatialite_path}'
42+
db = sqlite3.Connection(':memory:')
43+
db.enable_load_extension(True)
44+
db.load_extension(spatialite_path)
45+
print(db.execute('select spatialite_version()').fetchall())
46+
"@
3847
# datasette --version

0 commit comments

Comments
 (0)