mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 10:21:14 +08:00
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:
4
.github/workflows/daily.yml
vendored
4
.github/workflows/daily.yml
vendored
@@ -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:
|
||||
|
||||
6
.github/workflows/stubtest_third_party.yml
vendored
6
.github/workflows/stubtest_third_party.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user