Spaces:
Sleeping
Sleeping
Commit
·
497d310
1
Parent(s):
223c43b
Set up github workflow
Browse files
.github/workflows/check_file_size.yml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Check file size
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
pull_request:
|
6 |
+
workflow_dispatch:
|
7 |
+
|
8 |
+
jobs:
|
9 |
+
check-large-files:
|
10 |
+
runs-on: ubuntu-latest
|
11 |
+
steps:
|
12 |
+
- uses: ActionsDesk/[email protected]
|
13 |
+
with:
|
14 |
+
filesizelimit: 10485760
|
.github/workflows/sync_to_huggingface.yml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to HuggingFace hub
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- main
|
7 |
+
workflow_dispatch:
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
test-and-sync:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v3
|
14 |
+
with:
|
15 |
+
fetch-depth: 0
|
16 |
+
lfs: true
|
17 |
+
|
18 |
+
- name: Set up Python
|
19 |
+
uses: actions/setup-python@v4
|
20 |
+
with:
|
21 |
+
python-version: '3.12'
|
22 |
+
|
23 |
+
- name: Install dependencies
|
24 |
+
run: |
|
25 |
+
python -m pip install --upgrade pip
|
26 |
+
pip install requirements.txt
|
27 |
+
|
28 |
+
- name: Run tests
|
29 |
+
run: python test.py
|
30 |
+
|
31 |
+
- name: Push to hub
|
32 |
+
if: success()
|
33 |
+
env:
|
34 |
+
HF_TOKEN: ${{ secrets.HF_API_KEY }}
|
35 |
+
run: |
|
36 |
+
git push https://IliaLarchenko:[email protected]/spaces/IliaLarchenko/interviewer main
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
gradio==4.27.0
|
2 |
openai==1.19.0
|
3 |
python-dotenv==1.0.1
|
|
|
|
1 |
gradio==4.27.0
|
2 |
openai==1.19.0
|
3 |
python-dotenv==1.0.1
|
4 |
+
pytest==8.2.0
|