Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions eng/pipelines/pr-validation-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
displayName: 'CodeQL Security Analysis'
pool:
vmImage: 'ubuntu-latest'

steps:
- script: |
sudo apt-get update
Expand Down Expand Up @@ -45,10 +45,14 @@ jobs:
condition: always()
displayName: 'Finalize CodeQL'

- job: PytestOnWindows
- job: pytestonwindows
displayName: 'Windows x64'
pool:
vmImage: 'windows-latest'
variables:
# Enable CodeQL for this job to update the old stale snapshot (build_jobname=pytestonwindows)
# This can be removed once the old CodeQL issue SM02986 is cleared
Codeql.Enabled: true

strategy:
matrix:
Expand Down Expand Up @@ -225,11 +229,22 @@ jobs:
env:
DB_PASSWORD: $(DB_PASSWORD)

# ============== CodeQL Init (temporary - remove after SM02986 is cleared) ==============
- task: CodeQL3000Init@0
inputs:
Enabled: true
displayName: 'Initialize CodeQL (temporary)'

- script: |
cd mssql_python\pybind
build.bat x64
displayName: 'Build .pyd file'

# ============== CodeQL Finalize (temporary - remove after SM02986 is cleared) ==============
- task: CodeQL3000Finalize@0
condition: always()
displayName: 'Finalize CodeQL (temporary)'

# Run tests for LocalDB
- script: |
python -m pytest -v --junitxml=test-results-localdb.xml --cov=. --cov-report=xml:coverage-localdb.xml --capture=tee-sys --cache-clear
Expand Down
Loading