Spaces:
Sleeping
Sleeping
Update deploy.yml
Browse files
.github/workflows/deploy.yml
CHANGED
|
@@ -1,11 +1,8 @@
|
|
| 1 |
-
```yaml
|
| 2 |
name: CICD Prophet
|
| 3 |
-
|
| 4 |
on:
|
| 5 |
push:
|
| 6 |
branches:
|
| 7 |
- main
|
| 8 |
-
|
| 9 |
jobs:
|
| 10 |
test:
|
| 11 |
runs-on: ubuntu-latest
|
|
@@ -18,7 +15,6 @@ jobs:
|
|
| 18 |
run: pip install -r requirements.txt && pip install pytest
|
| 19 |
- name: Test
|
| 20 |
run: pytest tests/ -v
|
| 21 |
-
|
| 22 |
deploy:
|
| 23 |
runs-on: ubuntu-latest
|
| 24 |
needs: test
|
|
@@ -35,4 +31,3 @@ jobs:
|
|
| 35 |
run: |
|
| 36 |
git remote add hf https://muddasser:${HF_TOKEN}@huggingface.co/spaces/muddasser/ci_cd_prophet
|
| 37 |
git push hf main --force
|
| 38 |
-
```
|
|
|
|
|
|
|
| 1 |
name: CICD Prophet
|
|
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches:
|
| 5 |
- main
|
|
|
|
| 6 |
jobs:
|
| 7 |
test:
|
| 8 |
runs-on: ubuntu-latest
|
|
|
|
| 15 |
run: pip install -r requirements.txt && pip install pytest
|
| 16 |
- name: Test
|
| 17 |
run: pytest tests/ -v
|
|
|
|
| 18 |
deploy:
|
| 19 |
runs-on: ubuntu-latest
|
| 20 |
needs: test
|
|
|
|
| 31 |
run: |
|
| 32 |
git remote add hf https://muddasser:${HF_TOKEN}@huggingface.co/spaces/muddasser/ci_cd_prophet
|
| 33 |
git push hf main --force
|
|
|