forked from jduff/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
73 lines (66 loc) · 1.46 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
---
.base_test:
stage: test
tags:
- docker
before_script:
- apt update -qq
- apt install -y git
script:
- ./install.py -vv
# make sure no files changed
- git status --short && test "$(git status --short)" = ""
# make sure any submodules were initialized
- stat $(cat .gitmodules|grep path|sed -e 's/\spath\s=\s//')
default:
interruptible: true
lint:
stage: test
image: python:slim
tags:
- docker
script:
- export PATH=$HOME/.local/bin:$PATH
- pip install --user --upgrade pip
- pip install --user --upgrade setuptools wheel
- pip install --user --upgrade \
bandit \
black \
dlint \
flake8 \
flake8-annotations \
flake8-docstrings \
flake8-future-import \
flake8-import-order \
mypy \
pep8-naming \
pydocstyle \
types-termcolor
- pip check
- bandit --version
- black --version
- flake8 --version
- mypy --version
- bandit ./install.py
- black --diff --check ./install.py
- flake8 --statistics install.py
- mypy --strict install.py
py3.8:
# EOL: 2024-10-14
image: python:3.8-slim
extends: .base_test
py3.9:
# EOL: 2025-10-05
image: python:3.9-slim
extends: .base_test
py3.10:
# EOL: 2026-10-04
image: python:3.10-slim
extends: .base_test
py3.11:
# EOL: 2027-10-24
image: python:3.11
extends: .base_test
py3.12:
image: python:3.12-rc-slim
extends: .base_test