Skip to content

Commit e9178ce

Browse files
ryan-williamsclaude
andcommitted
gbfs CI: install the D1 verifier into its own venv
`uv pip install --system` fails on the runner: /usr is externally managed (PEP 668), so uv refuses outright (exit 2). `uv venv` first, then call the console script by path. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GgLAzeRJeNeyizG4XHWRBK
1 parent 9428516 commit e9178ce

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/gbfs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,18 @@ jobs:
7878
[ -n "$rev" ] || { echo "no pyrmts rev found in pyproject.toml" >&2; exit 1; }
7979
echo "pyrmts @ $rev"
8080
base="git+https://github.com/runsascoded/pyrmts.git@$rev"
81-
uv pip install --system \
81+
# Own venv rather than `--system`: the runner's /usr interpreter is
82+
# externally managed (PEP 668) and rejects installs outright.
83+
uv venv
84+
uv pip install \
8285
"pyrmts @ $base#subdirectory=python/pyrmts" \
8386
"pyrmts-engine @ $base#subdirectory=python/pyrmts_engine" \
8487
"pyrmts-ops @ $base#subdirectory=python/pyrmts_ops"
8588
- name: Verify D1 schema
8689
run: |
8790
id=$(sed -nE 's/^database_id = "([^"]+)"/\1/p' gbfs/api/wrangler.toml | head -1)
8891
[ -n "$id" ] || { echo "no database_id in gbfs/api/wrangler.toml" >&2; exit 1; }
89-
pyrmts-ops d1 verify -d "$id"
92+
.venv/bin/pyrmts-ops d1 verify -d "$id"
9093
env:
9194
# Its own token (`ctbk-gha-d1-read`), scoped to D1 Read and nothing
9295
# else — this job only ever reads `sqlite_master` and PRAGMAs, so it

0 commit comments

Comments
 (0)