stubtest_third_party.py: Allow running non-listed platforms locally (#9173)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Avasam
2022-11-14 20:39:57 -05:00
committed by GitHub
parent cfed3e1113
commit 72d1597de2
3 changed files with 16 additions and 9 deletions

View File

@@ -73,9 +73,9 @@ jobs:
sudo apt update
sudo apt install -y $(python tests/get_packages.py)
xvfb-run python tests/stubtest_third_party.py --num-shards 4 --shard-index ${{ matrix.shard-index }}
xvfb-run python tests/stubtest_third_party.py --specified-stubs-only --num-shards 4 --shard-index ${{ matrix.shard-index }}
else
python tests/stubtest_third_party.py --num-shards 4 --shard-index ${{ matrix.shard-index }}
python tests/stubtest_third_party.py --specified-stubs-only --num-shards 4 --shard-index ${{ matrix.shard-index }}
fi
stub-uploader:

View File

@@ -63,17 +63,17 @@ jobs:
echo "Installing apt packages: $PACKAGES"
sudo apt update && sudo apt install -y $PACKAGES
fi
xvfb-run python tests/stubtest_third_party.py $STUBS
xvfb-run python tests/stubtest_third_party.py --specified-stubs-only $STUBS
fi
if [ "${{ matrix.os }}" = "macos-latest" ]; then
# Could install brew packages here if we run into stubs that need it
python tests/stubtest_third_party.py $STUBS
python tests/stubtest_third_party.py --specified-stubs-only $STUBS
fi
if [ "${{ matrix.os }}" = "windows-latest" ]; then
# Could install choco packages here if we run into stubs that need it
python tests/stubtest_third_party.py $STUBS
python tests/stubtest_third_party.py --specified-stubs-only $STUBS
fi
else
echo "Nothing to test"