Spaces:
Build error
Build error
smdbs commited on
Commit ·
f9fa620
1
Parent(s): ced325b
fix: update workflows
Browse filesChanged sync_hf.yaml to only run after tests pass. Removed a redundant step of setting environment variable in test.yaml.
.github/workflows/sync_hf.yaml
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
name: Sync to Hugging Face hub
|
| 2 |
on:
|
| 3 |
workflow_run:
|
| 4 |
-
workflows:
|
|
|
|
| 5 |
types:
|
| 6 |
- completed
|
| 7 |
|
|
@@ -11,6 +12,7 @@ on:
|
|
| 11 |
jobs:
|
| 12 |
sync-to-hub:
|
| 13 |
runs-on: ubuntu-latest
|
|
|
|
| 14 |
steps:
|
| 15 |
- uses: actions/checkout@v3
|
| 16 |
with:
|
|
|
|
| 1 |
name: Sync to Hugging Face hub
|
| 2 |
on:
|
| 3 |
workflow_run:
|
| 4 |
+
workflows:
|
| 5 |
+
- Python tests
|
| 6 |
types:
|
| 7 |
- completed
|
| 8 |
|
|
|
|
| 12 |
jobs:
|
| 13 |
sync-to-hub:
|
| 14 |
runs-on: ubuntu-latest
|
| 15 |
+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
| 16 |
steps:
|
| 17 |
- uses: actions/checkout@v3
|
| 18 |
with:
|
.github/workflows/test.yaml
CHANGED
|
@@ -31,4 +31,4 @@ jobs:
|
|
| 31 |
env:
|
| 32 |
HF_TOKEN: ${{ secrets.HF_INF_TOKEN }}
|
| 33 |
run: |
|
| 34 |
-
|
|
|
|
| 31 |
env:
|
| 32 |
HF_TOKEN: ${{ secrets.HF_INF_TOKEN }}
|
| 33 |
run: |
|
| 34 |
+
python -m pytest test.py
|