Skip to content

Commit e3ef012

Browse files
Removing redundant lines
1 parent f460ded commit e3ef012

File tree

1 file changed

+1
-66
lines changed

1 file changed

+1
-66
lines changed

.github/workflows/model_pipeline.yaml

+1-66
Original file line numberDiff line numberDiff line change
@@ -58,69 +58,4 @@ jobs:
5858

5959
- name: Notify on failure
6060
if: failure()
61-
run: echo "Unit tests failed"
62-
63-
# - name: Set up Python
64-
# uses: actions/setup-python@v2
65-
# with:
66-
# python-version: "3.8"
67-
68-
# - name: Install Dependencies
69-
# run: |
70-
# python -m pip install --upgrade pip
71-
# pip install -r requirements.txt
72-
73-
# - name: Run Model Training Script
74-
# env:
75-
# GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
76-
# run: |
77-
# python train_model.py
78-
79-
# - name: Validate Model
80-
# run: |
81-
# python validate_model.py
82-
83-
# - name: Check Validation Results
84-
# run: |
85-
# ACCURACY=$(jq .accuracy validation_metrics.json)
86-
# if (( $(echo "$ACCURACY < 0.85" | bc -l) )); then
87-
# echo "Model validation failed!"
88-
# exit 1
89-
# fi
90-
91-
# - name: Run Bias Detection
92-
# run: |
93-
# python detect_bias.py
94-
95-
# - name: Check Bias Results
96-
# run: |
97-
# BIAS=$(jq .bias_score bias_metrics.json)
98-
# if (( $(echo "$BIAS > 0.2" | bc -l) )); then
99-
# echo "Significant bias detected!"
100-
# exit 1
101-
# fi
102-
103-
# - name: Push Model to Artifact Registry
104-
# run: |
105-
# gcloud auth activate-service-account --key-file=$GCP_CREDENTIALS
106-
# gsutil cp model.pkl gs://my-model-bucket/models/model-$(date +%Y%m%d%H%M%S).pkl
107-
108-
# - name: Notify on Slack
109-
# uses: slackapi/slack-github-action@v1.23
110-
# with:
111-
# payload: |
112-
# {
113-
# "channel": "#mlopsgrp10",
114-
# "text": "Model training pipeline completed with status ${{ job.status }}."
115-
# }
116-
# env:
117-
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
118-
119-
# - name: Compare with Previous Model
120-
# run: |
121-
# python compare_models.py
122-
123-
# - name: Rollback if New Model is Worse
124-
# if: failure()
125-
# run: |
126-
# gsutil cp gs://my-model-bucket/models/previous_model.pkl model.pkl
61+
run: echo "Unit tests failed"

0 commit comments

Comments
 (0)