ci: Do not run stubtest_third_party for deleted stubs (#6467)

This commit is contained in:
Akuli
2021-12-01 19:15:17 +02:00
committed by GitHub
parent 4631b74919
commit 50d29ef424

View File

@@ -126,7 +126,7 @@ jobs:
run: pip install $(grep tomli== requirements-tests-py3.txt)
- name: Run stubtest
run: |
STUBS=$(git diff --name-only origin/${{ github.base_ref }} HEAD | egrep ^stubs/ | cut -d "/" -f 2)
STUBS=$(git diff --name-only origin/${{ github.base_ref }} HEAD | egrep ^stubs/ | cut -d "/" -f 2 | sort -u | (while read stub; do [ -d stubs/$stub ] && echo $stub; done))
if test -n "$STUBS"; then
echo "Testing $STUBS..."
python tests/stubtest_third_party.py $STUBS