mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
Do a dry run of stubsabot on PRs touching scripts/ or tests/ (#10508)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
name: Typecheck-typeshed-code
|
||||
# This workflow is for testing typeshed's scripts and tests themselves
|
||||
name: Meta-tests
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -9,8 +10,9 @@ on:
|
||||
paths:
|
||||
- "scripts/**"
|
||||
- "tests/**"
|
||||
- ".github/workflows/typecheck_typeshed_code.yml"
|
||||
- ".github/workflows/meta_tests.yml"
|
||||
- "requirements-tests.txt"
|
||||
- "pyproject.toml"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -68,3 +70,19 @@ jobs:
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: "3.9"
|
||||
project: ./pyrightconfig.scripts_and_tests.json
|
||||
stubsabot-dry-run:
|
||||
name: Stubsabot dry run
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11"
|
||||
cache: pip
|
||||
cache-dependency-path: requirements-tests.txt
|
||||
- name: Git config
|
||||
run: |
|
||||
git config --global user.name stubsabot
|
||||
git config --global user.email '<>'
|
||||
- run: pip install -r requirements-tests.txt
|
||||
- run: python scripts/stubsabot.py --action-level local
|
||||
Reference in New Issue
Block a user