-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1012 Bytes
/
test.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
name: Run tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:9.6
env:
POSTGRES_DB: rasa
POSTGRES_USER: rasa
POSTGRES_PASSWORD: rasa
ports:
- 5432:5432
env:
DATABASE: postgres://rasa:rasa@localhost:5432/rasa
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ hashFiles('requirements.txt', 'requirements-dev.txt') }}-pip
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependancies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Lint
run: |
black --check .
isort -c .
flake8
- name: Test
run: |
coverage run -m unittest
coverage report
- uses: codecov/codecov-action@v1