-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 964 Bytes
/
tests.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
name: tests
on:
push:
paths-ignore:
- '**/README.md'
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: django_dx
POSTGRES_PASSWORD: django_dx
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432
redis:
image: redis
options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python - --version 1.8.3
echo "PATH=${HOME}/.local/bin:${PATH}" >> $GITHUB_ENV
- uses: actions/setup-python@v5
with:
cache: 'poetry'
- run: poetry install
- name: Run Tests
run: poetry run pytest