All materials
ci-cd-workflow-template.yml
ymlci-cd-workflow-template.yml
name: ML Pipeline Evaluation
on:
push:
branches:
- main
- 'feature/*'
jobs:
evaluate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Load the trained model for evaluation
# Configure the model path based on your project structure
- name: Run evaluation suite
run: |
python evaluation-suite.py
# Configure eval threshold check here
# The evaluation suite prints metrics to stdout
# Parse the output and exit 1 if any metric falls below threshold
- name: Check eval thresholds
run: |
echo "Configure threshold checks here"
echo "Exit 1 if metrics below threshold"