Aqsa Kausar commited on
Commit
b0ab7ee
·
unverified ·
1 Parent(s): 6431e51

Create visualization.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/visualization.yml +42 -0
.github/workflows/visualization.yml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Run Visualization Script
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ schedule:
6
+ # Run every 30 minutes
7
+ #- cron: '*/30 * * * *'
8
+ - cron: '0 0 * * 0'
9
+
10
+ jobs:
11
+ run-scraper:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v3
17
+
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v4
20
+ with:
21
+ python-version: '3.11'
22
+
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install -r requirements.txt
27
+
28
+ - name: Run Visualization Script
29
+ run: |
30
+ python embedding_gen.py
31
+ - name: List plots folder
32
+ run: ls -R plots || echo "plots not found"
33
+ - name: Commit and Push Changes
34
+ run: |
35
+ git config --global user.name "github-actions[bot]"
36
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
37
+ git add plots
38
+ git commit -m "Add plots generated by script"
39
+ git push
40
+ env:
41
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42
+