6363 DBT_ORACLE_PROTOCOL : tcp
6464 LD_LIBRARY_PATH : /opt/oracle/instantclient_21_6
6565 TNS_ADMIN : /opt/tns_admin
66-
67- oracle_xe_18_4 :
68- runs-on : ${{ matrix.os }}
69- strategy :
70- fail-fast : true
71- matrix :
72- os : [ ubuntu-latest ]
73- python-version : [ '3.7', '3.8', '3.9', '3.10' ]
74-
75- services :
76- oracle_db_xe :
77- image : container-registry.oracle.com/database/express:18.4.0-xe
78- env :
79- ORACLE_PWD : ${{ secrets.DBT_ORACLE_PASSWORD }}
80- options : --name oracle_db_xe
81- ports :
82- - 1521:1521
83-
84- steps :
85- - name : Check out dbt-oracle repository code
86- uses : actions/checkout@v3
87-
88- - name : Set up Python ${{ matrix.python-version }}
89- uses : actions/setup-python@v3
90- with :
91- python-version : ${{ matrix.python-version }}
92-
93- - name : Install Oracle Instantclient
94- run : |
95- chmod +x ${{ github.workspace }}/.github/scripts/install_oracle_instantclient.sh
96- ${{ github.workspace }}/.github/scripts/install_oracle_instantclient.sh
97-
98- - name : Copy Create User script
99- run : |
100- chmod +x ${{ github.workspace }}/.github/scripts/create_new_user.sh
101- docker cp ${{ github.workspace }}/.github/scripts/create_new_user.sh oracle_db_xe:/home/oracle/create_new_user.sh
102-
103- - name : Create dbt test user
104- run : |
105- docker exec oracle_db_xe /home/oracle/create_new_user.sh dbt_test ${{ secrets.DBT_ORACLE_PASSWORD }}
106-
107- - name : Install dbt-oracle with core dependencies
108- run : |
109- python -m pip install --upgrade pip
110- pip install pytest dbt-tests-adapter==1.1.1
111- pip install -r requirements.txt
112- pip install -e .
113-
114- - name : Run adapter tests
115- run : |
116- pytest
117- env :
118- DBT_ORACLE_USER : DBT_TEST
119- DBT_ORACLE_HOST : localhost
120- DBT_ORACLE_PORT : 1521
121- DBT_ORACLE_SCHEMA : DBT_TEST
122- DBT_ORACLE_PASSWORD : ${{ secrets.DBT_ORACLE_PASSWORD }}
123- DBT_ORACLE_DATABASE : XEPDB1
124- DBT_ORACLE_SERVICE : XEPDB1
125- DBT_ORACLE_PROTOCOL : tcp
126- LD_LIBRARY_PATH : /opt/oracle/instantclient_21_6
127- TNS_ADMIN : /opt/tns_admin
66+
0 commit comments