-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (45 loc) · 1.29 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Unit Testing
on:
push:
paths-ignore:
- 'README.md'
branches:
- main
workflow_dispatch:
jobs:
unittests:
name: Graph DB and APP PyTest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Get Python3
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install -r requirements-dev.txt
- name: Run Gremlin Server
run: |
wget -q https://mirrors.sonic.net/apache/tinkerpop/3.4.13/apache-tinkerpop-gremlin-server-3.4.13-bin.zip
unzip -q apache-tinkerpop-gremlin-server-3.4.13-bin.zip
cd apache-tinkerpop-gremlin-server-3.4.13
bin/gremlin-server.sh conf/gremlin-server-modern.yaml &
sleep 5s
- name: PyTest
run: |
pytest -v -s
- name: Stop Gremlin Server
run: |
pkill gremlin
pkill java