-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.01 KB
/
pipeline.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
on: [push]
env:
DATABASE_URL: postgresql+psycopg://postgres:[email protected]:3254/test
jobs:
lint-and-test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test
ports:
- 3254:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry==1.7.1
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10.6'
cache: 'poetry'
- name: Install dependencies
run: poetry install --no-interaction --no-ansi
- name: Run migrations
run: poetry run alembic upgrade head
- name: Lint
run: make lint-ci
- name: Test
run: make test