fix: prevent resource exhaustion and socket leaks in stress test #3
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Lint (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install dev deps | |
| run: pip install flake8 | |
| - name: Lint | |
| run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=__pycache__ | |
| - name: Check for unauthorized use warnings | |
| run: | | |
| grep -n "FOR AUTHORIZED" terminal_pressure.py && echo "✓ Auth warning present" || \ | |
| (echo "::warning::Authorization notice missing from source" && exit 0) |