gary-boon commited on
Commit
e6aff69
·
1 Parent(s): 0e48dc7

Simplify workflow: Remove automated HuggingFace deployment

Browse files

- Renamed workflow to 'Security Check' since deployment is manual
- Removed deploy-to-huggingface job
- Keeps security scanning with Snyk, Bandit, and Safety
- Manual deployment to HuggingFace continues as before

.github/workflows/{security-and-deploy.yml → security-check.yml} RENAMED
@@ -1,4 +1,4 @@
1
- name: Security Check and Deploy to HuggingFace
2
 
3
  on:
4
  push:
@@ -99,43 +99,3 @@ jobs:
99
  echo "- Consider upgrading to transformers>=4.36.0" >> $GITHUB_STEP_SUMMARY
100
  echo "" >> $GITHUB_STEP_SUMMARY
101
  echo "Check the logs above for detailed findings." >> $GITHUB_STEP_SUMMARY
102
-
103
- deploy-to-huggingface:
104
- runs-on: ubuntu-latest
105
- needs: security-check
106
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
107
-
108
- steps:
109
- - uses: actions/checkout@v3
110
- with:
111
- fetch-depth: 0
112
- lfs: true
113
-
114
- - name: Configure Git
115
- run: |
116
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
117
- git config --global user.name "github-actions[bot]"
118
-
119
- - name: Push to HuggingFace Space
120
- env:
121
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
122
- run: |
123
- # Add HuggingFace remote with authentication
124
- git remote add huggingface https://visualisable-ai:$HF_TOKEN@huggingface.co/spaces/visualisable-ai/api
125
-
126
- # Push to HuggingFace
127
- git push huggingface main:main --force
128
-
129
- echo "✅ Deployed to HuggingFace Spaces successfully!" >> $GITHUB_STEP_SUMMARY
130
- echo "🔗 View at: https://huggingface.co/spaces/visualisable-ai/api" >> $GITHUB_STEP_SUMMARY
131
- continue-on-error: true
132
-
133
- - name: Deployment Status
134
- if: always()
135
- run: |
136
- if [ $? -eq 0 ]; then
137
- echo "### Deployment Status: ✅ Success" >> $GITHUB_STEP_SUMMARY
138
- else
139
- echo "### Deployment Status: ⚠️ Manual deployment may be needed" >> $GITHUB_STEP_SUMMARY
140
- echo "Run 'git push origin main' locally if automatic deployment failed" >> $GITHUB_STEP_SUMMARY
141
- fi
 
1
+ name: Security Check
2
 
3
  on:
4
  push:
 
99
  echo "- Consider upgrading to transformers>=4.36.0" >> $GITHUB_STEP_SUMMARY
100
  echo "" >> $GITHUB_STEP_SUMMARY
101
  echo "Check the logs above for detailed findings." >> $GITHUB_STEP_SUMMARY
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
backend/__pycache__/icl_attention_extractor.cpython-310.pyc ADDED
Binary file (6.63 kB). View file
 
backend/__pycache__/icl_service.cpython-310.pyc ADDED
Binary file (8.58 kB). View file
 
backend/__pycache__/induction_head_detector.cpython-310.pyc ADDED
Binary file (8.01 kB). View file
 
backend/__pycache__/model_service.cpython-310.pyc CHANGED
Binary files a/backend/__pycache__/model_service.cpython-310.pyc and b/backend/__pycache__/model_service.cpython-310.pyc differ
 
backend/__pycache__/pipeline_analyzer.cpython-310.pyc ADDED
Binary file (11.6 kB). View file
 
backend/__pycache__/qkv_extractor.cpython-310.pyc ADDED
Binary file (8.6 kB). View file