Refactor CI workflows to improve caching mechanisms for dependencies in API Docs, frontend, and service adapters; replace artifact upload steps with test results summaries for better clarity in pipeline logs; update progress documentation accordingly
Some checks failed
API Docs (Node.js Express) / test (16) (push) Successful in 10m11s
API Docs (Node.js Express) / test (18) (push) Successful in 10m18s
API Docs (Node.js Express) / test (20) (push) Successful in 1m50s
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 4m52s
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 5m3s
API Docs (Node.js Express) / security (push) Has been cancelled
API Docs (Node.js Express) / build (push) Has been cancelled
LabFusion CI/CD Pipeline / integration-tests (push) Has been cancelled
LabFusion CI/CD Pipeline / security-scan (push) Has been cancelled
LabFusion CI/CD Pipeline / api-docs (push) Has been cancelled
LabFusion CI/CD Pipeline / frontend (push) Has been cancelled
Docker Build and Push / deploy-staging (push) Has been cancelled
Docker Build and Push / deploy-production (push) Has been cancelled
Docker Build and Push / security-scan (push) Has been cancelled
Docker Build and Push / build-and-push (push) Has been cancelled
Integration Tests / performance-tests (push) Has been cancelled
Integration Tests / integration-tests (push) Has been cancelled
Frontend (React) / lighthouse (push) Has been cancelled
Frontend (React) / security (push) Has been cancelled
Frontend (React) / test (18) (push) Has been cancelled
Frontend (React) / test (20) (push) Has been cancelled
Frontend (React) / build (push) Has been cancelled
Frontend (React) / test (16) (push) Has been cancelled
Service Adapters (Python FastAPI) / test (3.1) (push) Has been cancelled
Service Adapters (Python FastAPI) / test (3.11) (push) Has been cancelled
Service Adapters (Python FastAPI) / test (3.12) (push) Has been cancelled
Service Adapters (Python FastAPI) / test (3.9) (push) Has been cancelled
Service Adapters (Python FastAPI) / build (push) Has been cancelled
Service Adapters (Python FastAPI) / security (push) Has been cancelled

This commit is contained in:
glenn schrooyen
2025-09-12 22:52:20 +02:00
parent 8c87c84208
commit 11bd4e0a8f
4 changed files with 50 additions and 36 deletions

View File

@@ -42,13 +42,23 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
${{ runner.os }}-
id: pip-cache
- name: Cache status
run: |
if [ "${{ steps.pip-cache.outputs.cache-hit }}" == "true" ]; then
echo "✅ Cache hit! Dependencies will be restored from cache."
else
echo "❌ Cache miss. Dependencies will be downloaded fresh."
fi
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov pytest-asyncio httpx
pip install flake8 black isort mypy bandit safety
pip install --cache-dir ~/.cache/pip -r requirements.txt
pip install --cache-dir ~/.cache/pip pytest pytest-cov pytest-asyncio httpx
pip install --cache-dir ~/.cache/pip flake8 black isort mypy bandit safety
- name: Run code formatting check
run: |
@@ -80,16 +90,13 @@ jobs:
flags: service-adapters
name: service-adapters-coverage
- name: Upload test results
uses: actions/upload-artifact@v4
- name: Test results summary
if: always()
with:
name: test-results-python-${{ matrix.python-version }}
path: |
services/service-adapters/coverage.xml
services/service-adapters/htmlcov/
services/service-adapters/bandit-report.json
services/service-adapters/safety-report.json
run: |
echo "Test results available in pipeline logs"
echo "Coverage report: services/service-adapters/coverage.xml"
echo "HTML coverage: services/service-adapters/htmlcov/"
echo "Security reports: bandit-report.json, safety-report.json"
build:
runs-on: ubuntu-latest