Add websockets to external requirements allow list #673
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check scripts | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| FORCE_COLOR: 1 | |
| jobs: | |
| black: | |
| name: Check formatting with black | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - uses: actions/checkout@v4 | |
| - run: pip install -r requirements.txt | |
| - run: | | |
| black --version | |
| black --check . | |
| mypy: | |
| name: Check stub_uploader with mypy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - uses: actions/checkout@v4 | |
| - run: pip install -r requirements.txt | |
| - run: mypy --strict -p stub_uploader -p tests | |
| tests: | |
| name: Run integration and unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| # Keep in sync with typeshed's daily.yml and tests.yml workflows. | |
| python-version: '3.13' | |
| - name: Checkout main | |
| uses: actions/checkout@v4 | |
| with: | |
| path: main | |
| - name: Checkout typeshed | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: python/typeshed | |
| path: typeshed | |
| - name: Run tests | |
| run: | | |
| cd main | |
| pip install -r requirements.txt | |
| python -Werror -m pytest tests |