fix(ci): use Python container image instead of setup-python action
Some checks failed
Deploy Frontend / build-and-deploy (push) Successful in 4m3s
DSPy RAG Evaluation / Layer 1 - Unit Tests (push) Failing after 12s
DSPy RAG Evaluation / Layer 3 - Integration Tests (push) Has been skipped
DSPy RAG Evaluation / Layer 2 - DSPy Module Tests (push) Has been skipped
DSPy RAG Evaluation / Layer 4 - Comprehensive Evaluation (push) Has been skipped
DSPy RAG Evaluation / Quality Gate (push) Failing after 1s

- Switch all jobs to use python:3.11-slim container
- Remove setup-python action (not cached on Forgejo runner)
- Add apt-get install for openssh-client and curl in SSH tunnel jobs
- Increased timeout for unit-tests to 10 minutes
- Remove unused PYTHON_VERSION env var
This commit is contained in:
kempersc 2026-01-11 22:28:49 +01:00
parent 56c373bba8
commit 02d5b61e40

View file

@ -39,7 +39,6 @@ on:
- cron: '0 2 * * *'
env:
PYTHON_VERSION: '3.11'
SERVER_IP: '91.98.224.44'
SERVER_USER: 'root'
@ -50,18 +49,16 @@ jobs:
unit-tests:
name: Layer 1 - Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 5
container:
image: python:3.11-slim
timeout-minutes: 10
steps:
- uses: https://github.com/actions/checkout@v4
- name: Set up Python
uses: https://github.com/actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e ".[dev]"
pip install rapidfuzz
@ -84,6 +81,8 @@ jobs:
dspy-module-tests:
name: Layer 2 - DSPy Module Tests
runs-on: ubuntu-latest
container:
image: python:3.11-slim
timeout-minutes: 20
needs: unit-tests
@ -93,13 +92,9 @@ jobs:
steps:
- uses: https://github.com/actions/checkout@v4
- name: Set up Python
uses: https://github.com/actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e ".[dev]"
pip install dspy-ai httpx rapidfuzz litellm
@ -124,19 +119,22 @@ jobs:
integration-tests:
name: Layer 3 - Integration Tests
runs-on: ubuntu-latest
container:
image: python:3.11-slim
timeout-minutes: 15
needs: unit-tests
steps:
- uses: https://github.com/actions/checkout@v4
- name: Set up Python
uses: https://github.com/actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
- name: Install system dependencies
run: |
apt-get update
apt-get install -y openssh-client curl
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -e ".[dev]"
pip install httpx pytest-asyncio
@ -188,6 +186,8 @@ jobs:
comprehensive-eval:
name: Layer 4 - Comprehensive Evaluation
runs-on: ubuntu-latest
container:
image: python:3.11-slim
timeout-minutes: 60
needs: [unit-tests, dspy-module-tests, integration-tests]
@ -197,13 +197,14 @@ jobs:
steps:
- uses: https://github.com/actions/checkout@v4
- name: Set up Python
uses: https://github.com/actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
- name: Install system dependencies
run: |
apt-get update
apt-get install -y openssh-client curl
- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install -e ".[dev]"
pip install dspy-ai httpx rapidfuzz pandas pytest-json-report litellm