Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update pinned oldest win image on azure#29992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
dstansby merged 3 commits intomatplotlib:mainfromtimhoffm:update-winimage
May 5, 2025
Merged
Changes fromall 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
63 changes: 18 additions & 45 deletionsazure-pipelines.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -50,7 +50,7 @@ stages:
strategy:
matrix:
Windows_py311:
vmImage: 'windows-2019' #keep one job pinned to the oldest image
vmImage: 'windows-2022' #Keep one job pinned to the oldest image
python.version: '3.11'
Windows_py312:
vmImage: 'windows-latest'
Expand DownExpand Up@@ -101,50 +101,23 @@ stages:
VS=$(ls -d /c/Program\ Files*/Microsoft\ Visual\ Studio/*/Enterprise)
echo "Visual Studio: ${VS}"
DIR="$VS/Common7/IDE/Extensions/Microsoft/CodeCoverage.Console"
if [[ -d $DIR ]]; then
# This is for MSVC 2022 (on windows-latest).
TOOL="$DIR/Microsoft.CodeCoverage.Console.exe"
for f in build/cp*/src/*.pyd; do
echo $f
echo "=============================="
"$TOOL" instrument $f --session-id $SESSION_ID \
--log-level Verbose --log-file instrument.log
cat instrument.log
rm instrument.log
done
echo "Starting $TOOL in server mode"
"$TOOL" collect \
--session-id $SESSION_ID --server-mode \
--output-format cobertura --output extensions.xml \
--log-level Verbose --log-file extensions.log &
VS_VER=2022
else
DIR="$VS"/Team\ Tools/Dynamic\ Code\ Coverage\ Tools/amd64
if [[ -d $DIR ]]; then
# This is for MSVC 2019 (on windows-2019).
VSINSTR="$VS"/Team\ Tools/Performance\ Tools/vsinstr.exe
for f in build/cp*/src/*.pyd; do
"$VSINSTR" $f -Verbose -Coverage
done
TOOL="$DIR/CodeCoverage.exe"
cat > extensions.config << EOF
<CodeCoverage>
<CollectFromChildProcesses>true</CollectFromChildProcesses>
<ModulePaths>
<Include>
<ModulePath>.*\\.*\.pyd</ModulePath>
</Include>
</ModulePaths>
</CodeCoverage>
EOF
echo "Starting $TOOL in server mode"
"$TOOL" collect \
-config:extensions.config -session:$SESSION_ID \
-output:extensions.coverage -verbose &
echo "Started $TOOL"
VS_VER=2019
fi
fi
# This is for MSVC 2022 (on windows-latest).
TOOL="$DIR/Microsoft.CodeCoverage.Console.exe"
for f in build/cp*/src/*.pyd; do
echo $f
echo "=============================="
"$TOOL" instrument $f --session-id $SESSION_ID \
--log-level Verbose --log-file instrument.log
cat instrument.log
rm instrument.log
done
echo "Starting $TOOL in server mode"
"$TOOL" collect \
--session-id $SESSION_ID --server-mode \
--output-format cobertura --output extensions.xml \
--log-level Verbose --log-file extensions.log &
VS_VER=2022

echo "##vso[task.setvariable variable=VS_COVERAGE_TOOL]$TOOL"

PYTHONFAULTHANDLER=1 pytest -rfEsXR -n 2 \
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp