-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.gitlab-ci.yml
48 lines (44 loc) · 906 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
41
42
43
44
45
46
47
48
stages:
- test
- lint
- release
python:
stage: test
image: python:3.10
services:
- name: liminspace/mjml-tcpserver:latest
alias: mjml
- postgres:14
variables:
POSTGRES_USER: postgres
POSTGRES_DB: birdsong
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: trust
before_script:
- pip3 install psycopg2-binary~=2.8.0 -e .
script:
- python3 runtests.py --no-input
flake8:
stage: lint
image: python:3.10
before_script:
- pip install flake8
script:
- flake8 birdsong/ tests/
isort:
stage: lint
image: python:3.10
before_script:
- pip install isort -e .
script:
- isort --recursive --diff --check-only birdsong/ tests/
build:
image: python:3.10
stage: release
before_script:
- pip install --upgrade setuptools wheel twine
script:
- ./setup.py sdist bdist_wheel
- twine upload dist/*
only:
- tags