-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 970 Bytes
/
ci.yml
File metadata and controls
48 lines (40 loc) · 970 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
on:
push:
paths-ignore:
- "**.md"
branches:
- main
pull_request:
paths-ignore:
- "**.md"
env:
APP_ENVIRONMENT: TEST
POSTGRES_USER: root
POSTGRES_PASSWORD: root
PGPASSWORD: root
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- name: 📁 Project checkout
uses: actions/checkout@v3
- name: 🐍 Setup python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: 💠 Install poetry
uses: snok/install-poetry@v1
with:
version: 2.0.0
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
- name: 📥 Install dependencies
run: make install
- name: 🧐 Lint
run: make lint
- name: 🐋 Start environment
run: make up && make wait-postgres && make wait-rabbitmq
- name: ✅ Tests
run: make test