forked from neon-jungle/wagtail-videos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
51 lines (44 loc) · 883 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
49
50
51
stages:
- test
- lint
- release
.python_test:
stage: test
script:
- apt-get update
- apt-get install -y ffmpeg
- python runtests.py
head:
extends: .python_test
image: python:3.11
before_script:
- pip install .['testing']
lts_52:
image: python:3.11
extends: .python_test
before_script:
- pip install .['testing'] wagtail~=5.2 django~=4.2
flake8:
stage: lint
image: python:3.11
before_script:
- pip install flake8
script:
- flake8 wagtailvideos/ tests/
isort:
stage: lint
image: python:3.11
before_script:
- pip install isort -e .
script:
- isort --recursive --diff --check-only wagtailvideos/ tests/
build:
image: python:3.11
stage: release
before_script:
- pip install --upgrade setuptools wheel twine
script:
- ./setup.py sdist bdist_wheel
- twine upload dist/*
only:
- tags