generated from moja-global/Import-Me
-
Notifications
You must be signed in to change notification settings - Fork 67
47 lines (40 loc) · 1.23 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
name: Test FLINT.Cloud
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
test-rest-api-flint-example:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./local/rest_api_flint.example/
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build REST API FLINT Example
# Docker container is created and run in detached mode at port 8080
run: |
docker build . --file Dockerfile --tag rest_api_flint.example
docker run --rm -d -p 8080:8080 rest_api_flint.example:latest
- name: Test endpoints
run: |
cd ../
pip install -U pytest
pytest tests/test_rest_example.py
test-rest-api-gcbm:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./local/rest_api_gcbm/
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build REST API GCBM
# Docker container is created and run in detached mode at port 8080
run: |
docker-compose up -d
- name: Test endpoints
run: |
cd ../
pip install -U pytest
pytest tests/test_rest_gcbm.py