Atharva Thakur commited on
Commit
5234546
1 Parent(s): f429927

Build and test workflows added

Browse files
.github/workflows/Deployment.yml CHANGED
@@ -4,9 +4,6 @@ on:
4
  push:
5
  branches:
6
  - 'main'
7
- pull_request:
8
- branches:
9
- - 'main'
10
 
11
  permissions:
12
  contents: read
@@ -40,3 +37,16 @@ jobs:
40
  - name: Test with pytest
41
  run: |
42
  pytest -vv
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  push:
5
  branches:
6
  - 'main'
 
 
 
7
 
8
  permissions:
9
  contents: read
 
37
  - name: Test with pytest
38
  run: |
39
  pytest -vv
40
+
41
+ sync-to-hub:
42
+ runs-on: ubuntu-latest
43
+ needs: "build"
44
+ steps:
45
+ - uses: actions/checkout@v3
46
+ with:
47
+ fetch-depth: 0
48
+ lfs: true
49
+ - name: Push to hub
50
+ env:
51
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
52
+ run: git push --force https://AtharvaThakur:$HF_TOKEN@huggingface.co/spaces/AtharvaThakur/Insights main
.github/workflows/Sync-to-HF.yml DELETED
@@ -1,24 +0,0 @@
1
- name: Sync to Hugging Face hub
2
- on:
3
- workflow_run:
4
- workflows: ["build"]
5
- branches: [main]
6
- types:
7
- - completed
8
-
9
- # to run this workflow manually from the Actions tab
10
- workflow_dispatch:
11
-
12
-
13
- jobs:
14
- sync-to-hub:
15
- runs-on: ubuntu-latest
16
- steps:
17
- - uses: actions/checkout@v3
18
- with:
19
- fetch-depth: 0
20
- lfs: true
21
- - name: Push to hub
22
- env:
23
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
24
- run: git push --force https://AtharvaThakur:$HF_TOKEN@huggingface.co/spaces/AtharvaThakur/Insights main