Spaces:
Runtime error
Runtime error
ozayezerceli
commited on
Commit
•
29e9498
1
Parent(s):
85b0feb
Create .github/workflows/evaluate.yml
Browse files
.github/workflows/evaluate.yml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Model Evaluation
|
2 |
+
on:
|
3 |
+
workflow_dispatch:
|
4 |
+
schedule:
|
5 |
+
- cron: '0 0 * * *' # Run daily at midnight UTC
|
6 |
+
|
7 |
+
jobs:
|
8 |
+
evaluate:
|
9 |
+
runs-on: ubuntu-latest
|
10 |
+
steps:
|
11 |
+
- uses: actions/checkout@v2
|
12 |
+
|
13 |
+
- name: Set up Python
|
14 |
+
uses: actions/setup-python@v2
|
15 |
+
with:
|
16 |
+
python-version: '3.9'
|
17 |
+
|
18 |
+
- name: Install dependencies
|
19 |
+
run: |
|
20 |
+
pip install -r requirements.txt
|
21 |
+
|
22 |
+
- name: Run evaluation
|
23 |
+
env:
|
24 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
25 |
+
run: |
|
26 |
+
python scripts/run_evaluation.py
|
27 |
+
|
28 |
+
- name: Commit and push results
|
29 |
+
run: |
|
30 |
+
git config --local user.email "[email protected]"
|
31 |
+
git config --local user.name "GitHub Action"
|
32 |
+
git add benchmark_results/*
|
33 |
+
git commit -m "Update evaluation results" || exit 0
|
34 |
+
git push
|