Skip to content

Commit 9ca0f69

Browse files
authored
Update azure pipeline to use Bookworm (#523)
Signed-off-by: Saikrishna Arcot <[email protected]>
1 parent e955e58 commit 9ca0f69

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

azure-pipelines.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pool:
2222
vmImage: 'ubuntu-20.04'
2323

2424
container:
25-
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bullseye:latest
25+
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-bookworm:latest
2626

2727
steps:
2828
- task: DownloadPipelineArtifact@2
@@ -49,7 +49,7 @@ steps:
4949
libnl-nf-3-200_*.deb \
5050
libswsscommon_1.0.0_amd64.deb \
5151
python3-swsscommon_1.0.0_amd64.deb
52-
workingDirectory: $(Build.ArtifactStagingDirectory)/target/debs/bullseye/
52+
workingDirectory: $(Build.ArtifactStagingDirectory)/target/debs/bookworm/
5353
displayName: 'Install Debian dependencies'
5454

5555
- script: |
@@ -59,7 +59,7 @@ steps:
5959
sudo pip3 install sonic_yang_mgmt-1.0-py3-none-any.whl
6060
sudo pip3 install sonic_yang_models-1.0-py3-none-any.whl
6161
sudo pip3 install sonic_config_engine-1.0-py3-none-any.whl
62-
workingDirectory: $(Build.ArtifactStagingDirectory)/target/python-wheels/bullseye/
62+
workingDirectory: $(Build.ArtifactStagingDirectory)/target/python-wheels/bookworm/
6363
displayName: 'Install Python dependencies'
6464

6565
- script: |
@@ -69,12 +69,15 @@ steps:
6969
. /etc/os-release
7070
sudo apt-add-repository https://packages.microsoft.com/debian/$VERSION_ID/prod
7171
sudo apt-get update
72-
sudo apt-get install -y dotnet-sdk-5.0
72+
sudo apt-get install -y dotnet-sdk-8.0
7373
displayName: "Install .NET CORE"
7474

7575
# Python 3
7676
- script: |
77-
python3 setup.py test
77+
set -ex
78+
pip3 install ".[testing]"
79+
pip3 uninstall --yes sonic-platform-common
80+
pytest
7881
displayName: 'Test Python 3'
7982

8083
- task: PublishTestResults@2
@@ -93,8 +96,7 @@ steps:
9396
displayName: 'Publish Python 3 test coverage'
9497

9598
- script: |
96-
set -e
97-
python3 setup.py bdist_wheel
99+
python3 -m build -n
98100
displayName: 'Build Python 3 wheel'
99101

100102
- publish: '$(System.DefaultWorkingDirectory)/dist/'

0 commit comments

Comments
 (0)