OxbridgeEconomics commited on
Commit
ab449f9
·
unverified ·
1 Parent(s): 4b9f874

Create stats.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/stats.yml +36 -0
.github/workflows/stats.yml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Data Collection - STATS
5
+
6
+ on:
7
+ # schedule:
8
+ # - cron: '0 16 * * *'
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ timeout-minutes: 14400
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Set up Python 3.10
21
+ uses: actions/setup-python@v3
22
+ with:
23
+ python-version: "3.10"
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28
+ pip install transformers
29
+ pip install tensorflow
30
+ pip install tf-keras
31
+ - name: Data Collection
32
+ env:
33
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
34
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
35
+ run: |
36
+ python stats.py