@@ -230,6 +230,10 @@ jobs:
230230 build.bat x64
231231 displayName: 'Build .pyd file'
232232
233+ - template : steps/install-mssql-py-core.yml
234+ parameters :
235+ platform : windows
236+
233237 # Run tests for LocalDB
234238 - script : |
235239 python -m pytest -v --junitxml=test-results-localdb.xml --cov=. --cov-report=xml:coverage-localdb.xml --capture=tee-sys --cache-clear
@@ -497,6 +501,10 @@ jobs:
497501 ./build.sh
498502 displayName: 'Build pybind bindings (.so)'
499503
504+ - template : steps/install-mssql-py-core.yml
505+ parameters :
506+ platform : unix
507+
500508 - script : |
501509 echo "Build successful, running tests now"
502510 python -m pytest -v --junitxml=test-results.xml --cov=. --cov-report=xml --capture=tee-sys --cache-clear
@@ -669,6 +677,12 @@ jobs:
669677 "
670678 displayName: 'Build pybind bindings (.so) in $(distroName) container'
671679
680+ - template : steps/install-mssql-py-core.yml
681+ parameters :
682+ platform : container
683+ containerName : test-container-$(distroName)
684+ venvActivate : ' source /opt/venv/bin/activate'
685+
672686 - script : |
673687 # Uninstall ODBC Driver before running tests
674688 docker exec test-container-$(distroName) bash -c "
@@ -984,6 +998,12 @@ jobs:
984998 displayName: 'Build pybind bindings (.so) in $(distroName) ARM64 container'
985999 retryCountOnTaskFailure: 2
9861000
1001+ - template : steps/install-mssql-py-core.yml
1002+ parameters :
1003+ platform : container
1004+ containerName : test-container-$(distroName)-$(archName)
1005+ venvActivate : ' source /opt/venv/bin/activate'
1006+
9871007 - script : |
9881008 # Uninstall ODBC Driver before running tests
9891009 docker exec test-container-$(distroName)-$(archName) bash -c "
@@ -1192,6 +1212,12 @@ jobs:
11921212 "
11931213 displayName: 'Build pybind bindings (.so) in RHEL 9 container'
11941214
1215+ - template : steps/install-mssql-py-core.yml
1216+ parameters :
1217+ platform : container
1218+ containerName : test-container-rhel9
1219+ venvActivate : ' source myvenv/bin/activate'
1220+
11951221 - script : |
11961222 # Uninstall ODBC Driver before running tests
11971223 docker exec test-container-rhel9 bash -c "
@@ -1411,6 +1437,12 @@ jobs:
14111437 displayName: 'Build pybind bindings (.so) in RHEL 9 ARM64 container'
14121438 retryCountOnTaskFailure: 2
14131439
1440+ - template : steps/install-mssql-py-core.yml
1441+ parameters :
1442+ platform : container
1443+ containerName : test-container-rhel9-arm64
1444+ venvActivate : ' source myvenv/bin/activate'
1445+
14141446 - script : |
14151447 # Uninstall ODBC Driver before running tests
14161448 docker exec test-container-rhel9-arm64 bash -c "
@@ -1638,6 +1670,12 @@ jobs:
16381670 "
16391671 displayName: 'Build pybind bindings (.so) in Alpine x86_64 container'
16401672
1673+ - template : steps/install-mssql-py-core.yml
1674+ parameters :
1675+ platform : container
1676+ containerName : test-container-alpine
1677+ venvActivate : ' source /workspace/venv/bin/activate'
1678+
16411679 - script : |
16421680 # Uninstall ODBC Driver before running tests to use bundled libraries
16431681 docker exec test-container-alpine bash -c "
@@ -1883,6 +1921,12 @@ jobs:
18831921 displayName: 'Build pybind bindings (.so) in Alpine ARM64 container'
18841922 retryCountOnTaskFailure: 2
18851923
1924+ - template : steps/install-mssql-py-core.yml
1925+ parameters :
1926+ platform : container
1927+ containerName : test-container-alpine-arm64
1928+ venvActivate : ' source /workspace/venv/bin/activate'
1929+
18861930 - script : |
18871931 # Uninstall ODBC Driver before running tests to use bundled libraries
18881932 docker exec test-container-alpine-arm64 bash -c "
@@ -2005,6 +2049,10 @@ jobs:
20052049 build.bat x64
20062050 displayName: 'Build .pyd file'
20072051
2052+ - template : steps/install-mssql-py-core.yml
2053+ parameters :
2054+ platform : windows
2055+
20082056 - script : |
20092057 python -m pytest -v --junitxml=test-results-azuresql.xml --cov=. --cov-report=xml:coverage-azuresql.xml --capture=tee-sys --cache-clear
20102058 displayName: 'Run tests on Azure SQL Database'
@@ -2047,6 +2095,10 @@ jobs:
20472095 ./build.sh
20482096 displayName: 'Build pybind bindings (.so)'
20492097
2098+ - template : steps/install-mssql-py-core.yml
2099+ parameters :
2100+ platform : unix
2101+
20502102 - script : |
20512103 python -m pytest -v --junitxml=test-results-azuresql.xml --cov=. --cov-report=xml:coverage-azuresql.xml --capture=tee-sys --cache-clear
20522104 displayName: 'Run tests on Azure SQL Database'
@@ -2118,6 +2170,12 @@ jobs:
21182170 "
21192171 displayName: 'Build pybind bindings (.so) in Ubuntu container'
21202172
2173+ - template : steps/install-mssql-py-core.yml
2174+ parameters :
2175+ platform : container
2176+ containerName : test-container-ubuntu-azuresql
2177+ venvActivate : ' source /opt/venv/bin/activate'
2178+
21212179 - script : |
21222180 docker exec test-container-ubuntu-azuresql bash -c "
21232181 export DEBIAN_FRONTEND=noninteractive
@@ -2212,6 +2270,10 @@ jobs:
22122270 ./build.sh codecov
22132271 displayName: 'Build pybind bindings with coverage'
22142272
2273+ - template : steps/install-mssql-py-core.yml
2274+ parameters :
2275+ platform : unix
2276+
22152277 - script : |
22162278 # Generate unified coverage (Python + C++)
22172279 chmod +x ./generate_codecov.sh
0 commit comments