Skip to content

Commit 39713af

Browse files
tanbroclaude
andcommitted
ci: grant DBMS_LOCK permission directly before tests
Use podman exec to run sqlplus and grant DBMS_LOCK permission to test user before running tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6372968 commit 39713af

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,14 @@ jobs:
154154
uv sync --no-dev --group test
155155
uv pip install mysqlclient aiomysql psycopg2 asyncpg pyodbc aioodbc oracledb
156156
157+
- name: Grant DBMS_LOCK permission to test user
158+
run: |
159+
podman exec oracledb sqlplus -s / as sysdba <<'EOF'
160+
ALTER SESSION SET "_ORACLE_SCRIPT"=TRUE;
161+
GRANT EXECUTE ON SYS.DBMS_LOCK TO test;
162+
exit;
163+
EOF
164+
157165
- name: Run tests
158166
shell: bash
159167
env:

0 commit comments

Comments
 (0)