@@ -230,6 +230,13 @@ jobs:
230230 build.bat x64
231231 displayName: 'Build .pyd file'
232232
233+ # Install mssql_py_core from NuGet wheel package (enables _bulkcopy tests)
234+ - task : PowerShell@2
235+ displayName : ' Install mssql_py_core from NuGet wheels'
236+ inputs :
237+ targetType : ' filePath'
238+ filePath : ' eng/scripts/install-mssql-py-core.ps1'
239+
233240 # Run tests for LocalDB
234241 - script : |
235242 python -m pytest -v --junitxml=test-results-localdb.xml --cov=. --cov-report=xml:coverage-localdb.xml --capture=tee-sys --cache-clear
@@ -497,6 +504,12 @@ jobs:
497504 ./build.sh
498505 displayName: 'Build pybind bindings (.so)'
499506
507+ # Install mssql_py_core from NuGet wheel package (enables _bulkcopy tests)
508+ - script : |
509+ chmod +x eng/scripts/install-mssql-py-core.sh
510+ ./eng/scripts/install-mssql-py-core.sh
511+ displayName: 'Install mssql_py_core from NuGet wheels'
512+
500513 - script : |
501514 echo "Build successful, running tests now"
502515 python -m pytest -v --junitxml=test-results.xml --cov=. --cov-report=xml --capture=tee-sys --cache-clear
@@ -669,6 +682,15 @@ jobs:
669682 "
670683 displayName: 'Build pybind bindings (.so) in $(distroName) container'
671684
685+ # Install mssql_py_core from NuGet wheel package inside container
686+ - script : |
687+ docker exec test-container-$(distroName) bash -c "
688+ source /opt/venv/bin/activate
689+ chmod +x eng/scripts/install-mssql-py-core.sh
690+ ./eng/scripts/install-mssql-py-core.sh
691+ "
692+ displayName: 'Install mssql_py_core in $(distroName) container'
693+
672694 - script : |
673695 # Uninstall ODBC Driver before running tests
674696 docker exec test-container-$(distroName) bash -c "
@@ -984,6 +1006,15 @@ jobs:
9841006 displayName: 'Build pybind bindings (.so) in $(distroName) ARM64 container'
9851007 retryCountOnTaskFailure: 2
9861008
1009+ # Install mssql_py_core from NuGet wheel package inside ARM64 container
1010+ - script : |
1011+ docker exec test-container-$(distroName)-$(archName) bash -c "
1012+ source /opt/venv/bin/activate
1013+ chmod +x eng/scripts/install-mssql-py-core.sh
1014+ ./eng/scripts/install-mssql-py-core.sh
1015+ "
1016+ displayName: 'Install mssql_py_core in $(distroName) ARM64 container'
1017+
9871018 - script : |
9881019 # Uninstall ODBC Driver before running tests
9891020 docker exec test-container-$(distroName)-$(archName) bash -c "
@@ -1192,6 +1223,15 @@ jobs:
11921223 "
11931224 displayName: 'Build pybind bindings (.so) in RHEL 9 container'
11941225
1226+ # Install mssql_py_core from NuGet wheel package inside RHEL 9 container
1227+ - script : |
1228+ docker exec test-container-rhel9 bash -c "
1229+ source myvenv/bin/activate
1230+ chmod +x eng/scripts/install-mssql-py-core.sh
1231+ ./eng/scripts/install-mssql-py-core.sh
1232+ "
1233+ displayName: 'Install mssql_py_core in RHEL 9 container'
1234+
11951235 - script : |
11961236 # Uninstall ODBC Driver before running tests
11971237 docker exec test-container-rhel9 bash -c "
@@ -1411,6 +1451,15 @@ jobs:
14111451 displayName: 'Build pybind bindings (.so) in RHEL 9 ARM64 container'
14121452 retryCountOnTaskFailure: 2
14131453
1454+ # Install mssql_py_core from NuGet wheel package inside RHEL 9 ARM64 container
1455+ - script : |
1456+ docker exec test-container-rhel9-arm64 bash -c "
1457+ source myvenv/bin/activate
1458+ chmod +x eng/scripts/install-mssql-py-core.sh
1459+ ./eng/scripts/install-mssql-py-core.sh
1460+ "
1461+ displayName: 'Install mssql_py_core in RHEL 9 ARM64 container'
1462+
14141463 - script : |
14151464 # Uninstall ODBC Driver before running tests
14161465 docker exec test-container-rhel9-arm64 bash -c "
@@ -1638,6 +1687,15 @@ jobs:
16381687 "
16391688 displayName: 'Build pybind bindings (.so) in Alpine x86_64 container'
16401689
1690+ # Install mssql_py_core from NuGet wheel package inside Alpine container
1691+ - script : |
1692+ docker exec test-container-alpine bash -c "
1693+ source /workspace/venv/bin/activate
1694+ chmod +x eng/scripts/install-mssql-py-core.sh
1695+ ./eng/scripts/install-mssql-py-core.sh
1696+ "
1697+ displayName: 'Install mssql_py_core in Alpine x86_64 container'
1698+
16411699 - script : |
16421700 # Uninstall ODBC Driver before running tests to use bundled libraries
16431701 docker exec test-container-alpine bash -c "
@@ -1883,6 +1941,15 @@ jobs:
18831941 displayName: 'Build pybind bindings (.so) in Alpine ARM64 container'
18841942 retryCountOnTaskFailure: 2
18851943
1944+ # Install mssql_py_core from NuGet wheel package inside Alpine ARM64 container
1945+ - script : |
1946+ docker exec test-container-alpine-arm64 bash -c "
1947+ source /workspace/venv/bin/activate
1948+ chmod +x eng/scripts/install-mssql-py-core.sh
1949+ ./eng/scripts/install-mssql-py-core.sh
1950+ "
1951+ displayName: 'Install mssql_py_core in Alpine ARM64 container'
1952+
18861953 - script : |
18871954 # Uninstall ODBC Driver before running tests to use bundled libraries
18881955 docker exec test-container-alpine-arm64 bash -c "
@@ -2005,6 +2072,13 @@ jobs:
20052072 build.bat x64
20062073 displayName: 'Build .pyd file'
20072074
2075+ # Install mssql_py_core from NuGet wheel package (enables _bulkcopy tests)
2076+ - task : PowerShell@2
2077+ displayName : ' Install mssql_py_core from NuGet wheels'
2078+ inputs :
2079+ targetType : ' filePath'
2080+ filePath : ' eng/scripts/install-mssql-py-core.ps1'
2081+
20082082 - script : |
20092083 python -m pytest -v --junitxml=test-results-azuresql.xml --cov=. --cov-report=xml:coverage-azuresql.xml --capture=tee-sys --cache-clear
20102084 displayName: 'Run tests on Azure SQL Database'
@@ -2047,6 +2121,12 @@ jobs:
20472121 ./build.sh
20482122 displayName: 'Build pybind bindings (.so)'
20492123
2124+ # Install mssql_py_core from NuGet wheel package (enables _bulkcopy tests)
2125+ - script : |
2126+ chmod +x eng/scripts/install-mssql-py-core.sh
2127+ ./eng/scripts/install-mssql-py-core.sh
2128+ displayName: 'Install mssql_py_core from NuGet wheels'
2129+
20502130 - script : |
20512131 python -m pytest -v --junitxml=test-results-azuresql.xml --cov=. --cov-report=xml:coverage-azuresql.xml --capture=tee-sys --cache-clear
20522132 displayName: 'Run tests on Azure SQL Database'
@@ -2118,6 +2198,15 @@ jobs:
21182198 "
21192199 displayName: 'Build pybind bindings (.so) in Ubuntu container'
21202200
2201+ # Install mssql_py_core from NuGet wheel package inside Ubuntu container
2202+ - script : |
2203+ docker exec test-container-ubuntu-azuresql bash -c "
2204+ source /opt/venv/bin/activate
2205+ chmod +x eng/scripts/install-mssql-py-core.sh
2206+ ./eng/scripts/install-mssql-py-core.sh
2207+ "
2208+ displayName: 'Install mssql_py_core in Ubuntu container'
2209+
21212210 - script : |
21222211 docker exec test-container-ubuntu-azuresql bash -c "
21232212 export DEBIAN_FRONTEND=noninteractive
0 commit comments