Skip to content

Commit

Permalink
Install MS SQL on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Aug 27, 2024
1 parent eb91968 commit 830e8e6
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,19 @@ jobs:
matrix:
environment: ["py310-pa13"]
steps:
- name: Create SQL Server
shell: pwsh
run: |
Write-Host "Downloading"
Import-Module BitsTransfer
Start-BitsTransfer -Source "https://download.microsoft.com/download/3/8/d/38de7036-2433-4207-8eae-06e247e17b25/SqlLocalDB.msi" -Destination SqlLocalDB.msi
Write-Host "Installing"
Start-Process -FilePath "SqlLocalDB.msi" -Wait -ArgumentList "/qn", "/norestart", "/l*v SqlLocalDBInstall.log", "IACCEPTSQLLOCALDBLICENSETERMS=YES"
sqlcmd -S '(localdb)\MSSQLLocalDB' -Q 'CREATE DATABASE test_db' -l 60
- name: Configure ODBC Data Source
run: |
odbcconf /a {CONFIGDSN "ODBC Driver 17 for SQL Server" "DSN=MSSQL|Server=(localdb)\MSSQLLocalDB|Database=test_db|Trusted_Connection=Yes"}
if %errorlevel% neq 0 exit /b %errorlevel%
- name: Checkout branch
uses: actions/checkout@v4
with:
Expand All @@ -62,9 +75,10 @@ jobs:
- name: Build wheel
shell: pixi run pwsh -Command {0}
run: python -m build
- name: Install wheel
- name: Install and test wheel
shell: pixi run pwsh -Command {0}
run: python -m pip install dist/*.whl
run: |
python -m pip install dist/*.whl
windows-tests:
runs-on: windows-latest
defaults:
Expand Down

0 comments on commit 830e8e6

Please sign in to comment.