-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
38 lines (31 loc) · 832 Bytes
/
config.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
version: 2
jobs:
build:
working_directory: ~/repo
docker:
- image: cimg/python:3.11.4
environment:
PIPENV_VENV_IN_PROJECT: true
DATABASE_URL: postgresql://root@localhost:5432/circle_test?sslmode=disable
- image: cimg/postgres:14.0
environment:
POSTGRES_USER: root
POSTGRES_DB: circle_test
steps:
- checkout
- run:
name: "Install poetry"
command: |
curl -sSL https://install.python-poetry.org | python3 -
- run:
name: "Install dependencies"
command: poetry install
- run:
name: "Run linters"
command: poetry run pre-commit run -a -v
- run:
name: "Run tests"
command: poetry run pytest -vv -sx
branches:
only:
- main