-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 845 Bytes
/
test_server.yaml
File metadata and controls
34 lines (31 loc) · 845 Bytes
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
on: [ push ]
name: server_tests
jobs:
test:
name: Server units
runs-on: ubuntu-latest
container:
image: python:3.9
services:
postgres:
image: postgres:12
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install deps
run: server/tests/helpers/prepare_env.sh
- name: Run tests
run: python3 -m pytest server/tests/*py
env:
DB_URL: postgresql+asyncpg:///postgres?host=postgres&port=5432&user=postgres&password=postgres
IN_MEMORY_CACHE: yes