Spaces:
Build error
Build error
Merge branch 'main' of https://github.com/dani-ange/sentiment-analysis-project
Browse files
.github/workflows/ci-cd.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
name: Sentiment Analysis Pipeline
|
| 2 |
|
| 3 |
-
on: [push, pull_request] # Runs on push or PR to any branch
|
| 4 |
|
| 5 |
jobs:
|
| 6 |
train_and_test:
|
|
@@ -30,7 +30,9 @@ jobs:
|
|
| 30 |
run: python test.py
|
| 31 |
|
| 32 |
- name: Upload Model Artifacts
|
| 33 |
-
uses: actions/upload-artifact@v3
|
|
|
|
|
|
|
| 34 |
with:
|
| 35 |
name: trained-model
|
| 36 |
path: models/
|
|
|
|
| 1 |
name: Sentiment Analysis Pipeline
|
| 2 |
|
| 3 |
+
on: [push, pull_request,workflow_dispatch] # Runs on push or PR to any branch
|
| 4 |
|
| 5 |
jobs:
|
| 6 |
train_and_test:
|
|
|
|
| 30 |
run: python test.py
|
| 31 |
|
| 32 |
- name: Upload Model Artifacts
|
| 33 |
+
#uses: actions/upload-artifact@v3
|
| 34 |
+
uses: actions/upload-artifact@v4
|
| 35 |
+
|
| 36 |
with:
|
| 37 |
name: trained-model
|
| 38 |
path: models/
|