10000 Fix issues with third-party stub tests by srittau · Pull Request #6466 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Fix issues with third-party stub tests #6466

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all 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
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,16 @@ 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)
if test -n "$STUBS"; then
echo "Testing $STUBS..."
python tests/stubtest_third_party.py $STUBS
for DIST in $STUBS; do
if test -e "stubs/$DIST"; then
echo "Testing $DIST..."
python tests/stubtest_third_party.py $DIST
else
echo "$DIST was removed, not testing"
fi
done
else
echo "Nothing to test"
fi
0