Spaces:
Runtime error
Runtime error
Commit
·
447ec62
1
Parent(s):
90aaea1
save change
Browse files- .github/workflows/test.yml +32 -19
.github/workflows/test.yml
CHANGED
@@ -14,20 +14,13 @@ jobs:
|
|
14 |
python-version: [ "3.8", "3.10", "3.9"]
|
15 |
steps:
|
16 |
- uses: actions/checkout@v4
|
17 |
-
|
|
|
|
|
18 |
uses: actions/setup-python@v4
|
19 |
with:
|
20 |
python-version: ${{ matrix.python-version }}
|
21 |
- run: pip install -r app/requirements.txt
|
22 |
-
- name: install apt dependencies
|
23 |
-
uses: awalsh128/cache-apt-pkgs-action@latest
|
24 |
-
with:
|
25 |
-
packages: wget libgl1 ffmpeg redis
|
26 |
-
- name: download model
|
27 |
-
run: |
|
28 |
-
wget -O ./model/end2end.onnx $MODEL_URL
|
29 |
-
env:
|
30 |
-
MODEL_URL: ${{secrets.MODEL_URL}}
|
31 |
- name: Run test
|
32 |
run: pytest
|
33 |
env:
|
@@ -40,6 +33,7 @@ jobs:
|
|
40 |
AURA_INSTANCEID: ${{secrets.AURA_INSTANCEID}}
|
41 |
AURA_INSTANCENAME: ${{secrets.AURA_INSTANCENAME}}
|
42 |
FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
|
|
|
43 |
build-linux:
|
44 |
runs-on: linux-latest
|
45 |
strategy:
|
@@ -47,20 +41,13 @@ jobs:
|
|
47 |
python-version: [ "3.8", "3.10", "3.9"]
|
48 |
steps:
|
49 |
- uses: actions/checkout@v4
|
|
|
|
|
50 |
- name: Set up Python 3.8 and install dependencies
|
51 |
uses: actions/setup-python@v4
|
52 |
with:
|
53 |
python-version: ${{ matrix.python-version }}
|
54 |
- run: pip install -r app/requirements.txt
|
55 |
-
- name: install apt dependencies
|
56 |
-
uses: awalsh128/cache-apt-pkgs-action@latest
|
57 |
-
with:
|
58 |
-
packages: wget libgl1
|
59 |
-
- name: download model
|
60 |
-
run: |
|
61 |
-
wget -O ./model/end2end.onnx $MODEL_URL
|
62 |
-
env:
|
63 |
-
MODEL_URL: ${{secrets.MODEL_URL}}
|
64 |
- name: Run test
|
65 |
run: pytest
|
66 |
env:
|
@@ -74,3 +61,29 @@ jobs:
|
|
74 |
AURA_INSTANCENAME: ${{secrets.AURA_INSTANCENAME}}
|
75 |
FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
python-version: [ "3.8", "3.10", "3.9"]
|
15 |
steps:
|
16 |
- uses: actions/checkout@v4
|
17 |
+
with:
|
18 |
+
lfs: true
|
19 |
+
- name: Set up Python and install dependencies
|
20 |
uses: actions/setup-python@v4
|
21 |
with:
|
22 |
python-version: ${{ matrix.python-version }}
|
23 |
- run: pip install -r app/requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
- name: Run test
|
25 |
run: pytest
|
26 |
env:
|
|
|
33 |
AURA_INSTANCEID: ${{secrets.AURA_INSTANCEID}}
|
34 |
AURA_INSTANCENAME: ${{secrets.AURA_INSTANCENAME}}
|
35 |
FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
|
36 |
+
|
37 |
build-linux:
|
38 |
runs-on: linux-latest
|
39 |
strategy:
|
|
|
41 |
python-version: [ "3.8", "3.10", "3.9"]
|
42 |
steps:
|
43 |
- uses: actions/checkout@v4
|
44 |
+
with:
|
45 |
+
lfs: true
|
46 |
- name: Set up Python 3.8 and install dependencies
|
47 |
uses: actions/setup-python@v4
|
48 |
with:
|
49 |
python-version: ${{ matrix.python-version }}
|
50 |
- run: pip install -r app/requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
- name: Run test
|
52 |
run: pytest
|
53 |
env:
|
|
|
61 |
AURA_INSTANCENAME: ${{secrets.AURA_INSTANCENAME}}
|
62 |
FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
|
63 |
|
64 |
+
build-windows:
|
65 |
+
runs-on: windows-latest
|
66 |
+
strategy:
|
67 |
+
matrix:
|
68 |
+
python-version: [ "3.8", "3.10", "3.9"]
|
69 |
+
steps:
|
70 |
+
- uses: actions/checkout@v4
|
71 |
+
with:
|
72 |
+
lfs: true
|
73 |
+
- name: Set up Python 3.8 and install dependencies
|
74 |
+
uses: actions/setup-python@v4
|
75 |
+
with:
|
76 |
+
python-version: ${{ matrix.python-version }}
|
77 |
+
- run: pip install -r app/requirements.txt
|
78 |
+
- name: Run test
|
79 |
+
run: pytest
|
80 |
+
env:
|
81 |
+
SUPABASE_URL: ${{secrets.SUPABASE_URL}}
|
82 |
+
SUPABASE_KEY: ${{secrets.SUPABASE_KEY}}
|
83 |
+
FIREBASE_CREDENTIALS: ${{secrets.FIREBASE_CREDENTIALS}}
|
84 |
+
NEO4J_URI: ${{secrets.NEO4J_URI}}
|
85 |
+
NEO4J_USERNAME: ${{secrets.NEO4J_USERNAME}}
|
86 |
+
NEO4J_PASSWORD: ${{secrets.NEO4J_PASSWORD}}
|
87 |
+
AURA_INSTANCEID: ${{secrets.AURA_INSTANCEID}}
|
88 |
+
AURA_INSTANCENAME: ${{secrets.AURA_INSTANCENAME}}
|
89 |
+
FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
|