File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 34
34
run : echo $PWD\spatialite-loadable-modules-5.0.0-win-amd64
35
35
- name : Verify installation
36
36
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
+ "@
38
47
# datasette --version
You can’t perform that action at this time.
0 commit comments