-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
40 lines (34 loc) · 904 Bytes
/
.gitlab-ci.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
39
40
variables:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: 'trust'
POETRY_INSTALLER_NO_BINARY: 'lxml,xmlsec'
PIP_NO_BINARY: '$POETRY_INSTALLER_NO_BINARY'
stages:
- test
- release
services:
- postgres:latest
cache:
key: "$CI_PROJECT_NAME"
paths:
- $HOME/.cache/pip
include:
- component: gitlab.com/thelabnyc/thelab-ci-components/precommit@0.3.1
- component: gitlab.com/thelabnyc/thelab-ci-components/publish-gitlab-release@0.3.1
- component: gitlab.com/thelabnyc/thelab-ci-components/publish-to-pypi@0.3.1
test:
stage: test
image: "registry.gitlab.com/thelabnyc/python:${IMAGE}"
script:
- make system_deps
- pip install tox
- tox
coverage: '/^TOTAL.+?(\d+\%)$/'
parallel:
matrix:
- IMAGE: py312
TOX_SKIP_ENV: "^(?!py312-)"
- IMAGE: py313
TOX_SKIP_ENV: "^(?!py313-)"