FrancisGOS commited on
Commit
3a115e0
2 Parent(s): eb9c6c6 78fff58

Merge branch 'NMPhap/testing' of https://github.com/HunyyDev/SE113.O12_KCPM into NMPhap/testing

Browse files
Files changed (1) hide show
  1. .github/workflows/test.yml +36 -0
.github/workflows/test.yml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Python Package using Conda
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}}