Spaces:
Runtime error
Runtime error
Commit
•
d6a03dc
1
Parent(s):
50f66f2
update workflow
Browse files- .github/workflows/deploy.yml +6 -4
- .github/workflows/test.yml +30 -30
.github/workflows/deploy.yml
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
-
name: Deploy
|
2 |
|
3 |
on:
|
4 |
-
push:
|
5 |
-
branches:
|
6 |
-
- main
|
7 |
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
jobs:
|
10 |
deploy:
|
|
|
1 |
+
name: Deploy
|
2 |
|
3 |
on:
|
|
|
|
|
|
|
4 |
workflow_dispatch:
|
5 |
+
workflow_run:
|
6 |
+
workflows:
|
7 |
+
- "Test"
|
8 |
+
types:
|
9 |
+
- completed
|
10 |
|
11 |
jobs:
|
12 |
deploy:
|
.github/workflows/test.yml
CHANGED
@@ -1,36 +1,36 @@
|
|
1 |
-
name:
|
2 |
on:
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
jobs:
|
10 |
build-linux:
|
11 |
runs-on: ubuntu-latest
|
12 |
|
13 |
steps:
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
1 |
+
name: Test
|
2 |
on:
|
3 |
+
push:
|
4 |
+
branches:
|
5 |
+
- main
|
6 |
+
pull_request:
|
7 |
+
branches:
|
8 |
+
- main
|
9 |
jobs:
|
10 |
build-linux:
|
11 |
runs-on: ubuntu-latest
|
12 |
|
13 |
steps:
|
14 |
+
- uses: actions/checkout@v3
|
15 |
+
with:
|
16 |
+
lfs: true
|
17 |
+
- name: Set up Python 3.8
|
18 |
+
uses: actions/setup-python@v3
|
19 |
+
with:
|
20 |
+
python-version: "3.8"
|
21 |
+
- name: install dependency
|
22 |
+
run: |
|
23 |
+
git lfs checkout
|
24 |
+
pip install -r app/requirements.txt
|
25 |
+
- name: Run test
|
26 |
+
run: pytest
|
27 |
+
env:
|
28 |
+
SUPABASE_URL: ${{secrets.SUPABASE_URL}}
|
29 |
+
SUPABASE_KEY: ${{secrets.SUPABASE_KEY}}
|
30 |
+
FIREBASE_CREDENTIALS: ${{secrets.FIREBASE_CREDENTIALS}}
|
31 |
+
NEO4J_URI: ${{secrets.NEO4J_URI}}
|
32 |
+
NEO4J_USERNAME: ${{secrets.NEO4J_USERNAME}}
|
33 |
+
NEO4J_PASSWORD: ${{secrets.NEO4J_PASSWORD}}
|
34 |
+
AURA_INSTANCEID: ${{secrets.AURA_INSTANCEID}}
|
35 |
+
AURA_INSTANCENAME: ${{secrets.AURA_INSTANCENAME}}
|
36 |
+
FIREBASE_API_KEY: ${{secrets.FIREBASE_API_KEY}}
|