-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.22 KB
/
develop.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
47
name: Develop-Pipeline
on: [push]
jobs:
test:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{secrets.DATABASE_URL}}
TEST_DATABASE_URL: ${{vars.TEST_DATABASE_URL}}
SECRET_KEY: ${{secrets.SECRET_KEY}}
ALGORITHM: ${{secrets.ALGORITHM}}
ACCESS_TOKEN_EXPIRE_MINUTES: ${{secrets.ACCESS_TOKEN_EXPIRE_MINUTES}}
POSTGRES_USER: ${{secrets.POSTGRES_USER}}
POSTGRES_PASSWORD: ${{secrets.POSTGRES_PASSWORD}}
POSTGRES_DB: ${{secrets.POSTGRES_DB}}
PAGE: ${{vars.PAGE}}
PAGE_SIZE: ${{vars.PAGE_SIZE}}
ORDERING: ${{vars.PAGE_SIZE}}
services:
postgres:
image: postgres
env:
POSTGRES_DB: ${{secrets.POSTGRES_DB}}
POSTGRES_PASSWORD: ${{secrets.POSTGRES_PASSWORD}}
POSTGRES_USER: ${{secrets.POSTGRES_USER}}
ports:
- 5432:5432
steps:
- name: Cloning the Repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11.1"
- name: Install Poetry
run: pipx install poetry
- name: Install Dependencies
run: poetry install
- name: Run tests
run: poetry run task test