-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (31 loc) · 1.11 KB
/
github-actions.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
name: github-actions
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DUMMY_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DUMMY_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-2
AWS_DEFAULT_OUTPUT: text
GENE_NORM_DB_URL: http://localhost:8000
TEST: GENE_TEST
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python3 -m pip install pipenv
pipenv install --dev
- name: Build local DynamoDB
run: |
chmod +x ./tests/unit/dynamodb_build.bash
./tests/unit/dynamodb_build.bash
- name: Load and Test DynamoDB
run: |
pipenv run pytest tests/unit/test_database.py
- run: pipenv run flake8
- run: pipenv run pytest tests/