Skip to content

fix: resolve socket hang up errors for large file execution #88

fix: resolve socket hang up errors for large file execution

fix: resolve socket hang up errors for large file execution #88

Workflow file for this run

name: Lint and Format
on:
pull_request:
branches: [main, dev]
jobs:
python-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install flake8 black mypy pytest pytest-asyncio pytest-cov pytest-mock bandit
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src/ --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. Default is 79 chars, matching strict flake8.
flake8 src/ --count --exit-zero --max-complexity=10 --statistics
- name: Check formatting with Black
run: |
# This will fail if code is not formatted. Run 'black src/' locally to fix.
black src/ --check
- name: Type checking with mypy
run: |
mypy src/
- name: Security scan with Bandit
run: |
bandit -r src/ -s B104,B108 --severity-level high
- name: Run Unit Tests
run: |
pytest tests/unit/
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Validate Docker build
uses: docker/build-push-action@v6
with:
context: .
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max