fix: increase SSH command timeout to 30m for slow builds #8
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: RAG CI Pipeline | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: Lint & Syntax Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Lint | |
| run: | | |
| pip install flake8 | |
| flake8 . --max-line-length=120 --exclude=__pycache__,.venv | |
| build: | |
| name: Build Docker Images | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Create dummy .env for build | |
| run: cp .env.example .env | |
| - name: Build API image | |
| run: docker build -f Dockerfile -t rag-api:ci . | |
| - name: Build Worker image | |
| run: docker build -f Dockerfile.worker -t rag-worker:ci . | |
| - name: Verify docker-compose config | |
| run: docker compose config --quiet |