File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,7 +145,15 @@ jobs:
145145 with :
146146 app-user : test
147147 app-user-password : test
148- setup-scripts : ${{ github.workspace }}/.github/scripts
148+
149+ - name : Grant DBMS_LOCK permission to test user
150+ run : |
151+ podman exec oracledb sqlplus -s / as sysdba <<'EOF'
152+ ALTER SESSION SET "_ORACLE_SCRIPT"=TRUE;
153+ ALTER SESSION SET CONTAINER=FREEPDB1;
154+ GRANT EXECUTE ON SYS.DBMS_LOCK TO test;
155+ exit;
156+ EOF
149157
150158 - name : Install the project
151159 env :
@@ -181,12 +189,8 @@ jobs:
181189 - name : Run tests
182190 shell : bash
183191 env :
184- TEST_URLS : mysql://test:test@127.0.0.1:3306/test postgresql://postgres:test@127.0.0.1:5432/ mssql+pyodbc://sa:YourStrongPassword123@127.0.0.1:1433/master?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes
185- TEST_ASYNC_URLS : mysql+aiomysql://test:test@127.0.0.1:3306/test postgresql+asyncpg://postgres:test@127.0.0.1:5432/ mssql+aioodbc://sa:YourStrongPassword123@127.0.0.1:1433/master?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes
186- # TODO: Oracle Database Free does not support DBMS_LOCK.REQUEST
187- # Need to investigate alternative locking mechanism (e.g., DBMS_LOCK_ALLOCATE_UNIQUE or table-based locks)
188- # TEST_URLS_ORACLE: oracle+oracledb://test:test@127.0.0.1:1521/?service_name=FREEPDB1
189- # TEST_ASYNC_URLS_ORACLE: oracle+oracledb://test:test@127.0.0.1:1521/?service_name=FREEPDB1
192+ TEST_URLS : mysql://test:test@127.0.0.1:3306/test postgresql://postgres:test@127.0.0.1:5432/ mssql+pyodbc://sa:YourStrongPassword123@127.0.0.1:1433/master?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes oracle+oracledb://test:test@127.0.0.1:1521/?service_name=FREEPDB1
193+ TEST_ASYNC_URLS : mysql+aiomysql://test:test@127.0.0.1:3306/test postgresql+asyncpg://postgres:test@127.0.0.1:5432/ mssql+aioodbc://sa:YourStrongPassword123@127.0.0.1:1433/master?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes oracle+oracledb://test:test@127.0.0.1:1521/?service_name=FREEPDB1
190194 run : |
191195 uv run --no-dev coverage run -m unittest -cfv
192196 uv run --no-dev coverage report -m
You can’t perform that action at this time.
0 commit comments