Skip to content

fix: prevent resource exhaustion and socket leaks in stress test #3

fix: prevent resource exhaustion and socket leaks in stress test

fix: prevent resource exhaustion and socket leaks in stress test #3

Workflow file for this run

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)