Skip to content

Commit

Permalink
Try multiline powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Aug 15, 2024
1 parent b141c3e commit 3433e51
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/experiment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3433e51

Please sign in to comment.