forked from Emory-HITI/Niffler
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.27 KB
/
test-pr.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: Testing Pull Requests to Niffler Dev
on:
pull_request:
branches: [dev]
jobs:
run_unit_tests:
name: Run Unit Tests on PR
runs-on: ubuntu-latest
container: "centos:latest"
steps:
- uses: actions/checkout@master
- name: Install Python 3
run: |
yum update -y -q
yum install -q -y python3
yum install -q -y python3-pip unzip
- name: Install Dependencies
run: |
pip3 install -U pip
pip3 install -r ./requirements-dev.txt
unzip ./tests/data.zip -d ./tests/
- name: Run Tests
run: |
echo "Running Unit Tests"
pytest ./tests/unit
run_integration_tests:
name: Run Integration Tests on PR
runs-on: ubuntu-latest
container: "centos:latest"
steps:
- uses: actions/checkout@master
- name: Install Python 3
run: |
yum update -y -q
yum install -q -y python3
yum install -q -y python3-pip unzip
- name: Install Dependencies
run: |
pip3 install -U pip
pip3 install -r ./requirements-dev.txt
unzip ./tests/data.zip -d ./tests/
- name: Run Tests
run: |
echo "Running Integration Tests"
pytest ./tests/integration