8000 Allow skipping tests in Windows release builds (#28) · python/release-tools@c02b199 · GitHub
[go: up one dir, main page]

Skip to content

Commit c02b199

Browse files
authored
Allow skipping tests in Windows release builds (#28)
1 parent 6846215 commit c02b199

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

windows-release/stage-test-embed.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
- script: |
3636
python -c "import sys; print(sys.version)"
3737
displayName: 'Collect version number'
38+
condition: and(succeeded(), not(variables['SkipTests']))
3839
3940
- script: |
4041
python -m site
4142
displayName: 'Collect site'
43+
condition: and(succeeded(), not(variables['SkipTests']))

windows-release/stage-test-msi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ jobs:
6161
- script: |
6262
python -c "import sys; print(sys.version)"
6363
displayName: 'Collect version number'
64+
condition: and(succeeded(), not(variables['SkipTests']))
6465
6566
- script: |
6667
python -m site
6768
displayName: 'Collect site'
69+
condition: and(succeeded(), not(variables['SkipTests']))
6870
6971
- powershell: |
7072
gci -r "${env:PROGRAMDATA}\Microsoft\Windows\Start Menu\Programs\Python*"
@@ -87,10 +89,12 @@ jobs:
8789
python -m pip install "azure<0.10"
8890
python -m pip uninstall -y azure python-dateutil six
8991
displayName: 'Test (un)install package'
92+
condition: and(succeeded(), not(variables['SkipTests']))
9093
9194
- script: |
9295
python -m test -uall -v test_ttk_guionly test_tk test_idle
9396
displayName: 'Test Tkinter and Idle'
97+
condition: and(succeeded(), not(variables['SkipTests']), not(variables['SkipTkTests']))
9498
9599
- script: >
96100
"$(SetupExe)"

windows-release/stage-test-nuget.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,15 @@ jobs:
4747
- script: |
4848
python -c "import sys; print(sys.version)"
4949
displayName: 'Collect version number'
50+
condition: and(succeeded(), not(variables['SkipTests']))
5051
5152
- script: |
5253
python -m site
5354
displayName: 'Collect site'
55+
condition: and(succeeded(), not(variables['SkipTests']))
5456
5557
- script: |
5658
python -m pip install "azure<0.10"
5759
python -m pip uninstall -y azure python-dateutil six
5860
displayName: 'Test (un)install package'
61+
condition: and(succeeded(), not(variables['SkipTests']))

0 commit comments

Comments
 (0)
0