-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.15 KB
/
cd-tests.yaml
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
name: CI-Tests
on:
pull_request:
branches:
- 'main'
paths:
- '**'
env:
AWS_DEFAULT_REGION: 'eu-west-2'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
working-directory: "."
run: pip install pipenv && pipenv install --dev
- name: Run Unit tests
working-directory: "."
run: pipenv run pytest tests/
- name: Lint
working-directory: "."
run: pipenv run pylint --recursive=y prediction_service
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Integration Test
working-directory: 'integration_test'
run: |
. run.sh