Commit fe75efc
authored
fix: add contents:read permission to pypi workflow and fix migration check to use temp DB (#27)
- pypi workflow only had id-token:write; declaring any permissions key drops
all others to none, so checkout failed with 'repository not found' on
private repos. Added contents:read to restore checkout access.
- check_ungenerated_migrations ran alembic check against whatever database
DATABASE_URL pointed to. In CI there is no pre-existing database, so alembic
reported 'Target database is not up to date' before comparing models to
migrations at all. Updated the target to create a fresh temp DB, run
upgrade head, then check, then clean up — matching the create_migration
pattern.1 parent 5650bdb commit fe75efc
2 files changed
+5
-1
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
0 commit comments