-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
74 lines (65 loc) · 1.35 KB
/
.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
stages:
- checks
- test
- deploy
pre-commit:
stage: checks
image: python:3.10-bullseye
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
cache:
paths:
- ${PRE_COMMIT_HOME}
script:
- pip install pre-commit
- pre-commit run --all-files
# pylint:
# stage: checks
# extends: .tox_setup
# image: python:3.10-bullseye
# script:
# - tox -e pylint
.tox_setup:
before_script:
- apt-get update
- apt-get install redis-server -y
- redis-server --daemonize yes
- python -V
- pip install tox
test-py38-dj40:
extends: .tox_setup
image: python:3.8-bullseye
script:
- tox -e py38-django40
test-py39-dj40:
extends: .tox_setup
image: python:3.9-bullseye
script:
- tox -e py39-django40
test-py310-dj40:
extends: .tox_setup
image: python:3.10-bullseye
script:
- tox -e py310-django40
- bash <(curl -s https://codecov.io/bash)
test-py311-dj40:
extends: .tox_setup
image: python:3.11-bullseye
script:
- tox -e py311-django40
- bash <(curl -s https://codecov.io/bash)
test-py311-dj42:
extends: .tox_setup
image: python:3.11-bullseye
script:
- tox -e py311-django42
deploy-pypi:
stage: deploy
image: python:3.10-bullseye
before_script:
- pip install twine wheel build
script:
- python -m build
- twine upload dist/*
only:
- tags