-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (38 loc) · 1.19 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
# This file is a template, and might need editing before it works on your project.
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:3.10
variables:
HTTP_PROXY: "http://webproxy:8080"
HTTPS_PROXY: "http://webproxy:8080"
http_proxy: "http://webproxy:8080"
https_proxy: "http://webproxy:8080"
before_script:
- pip install --upgrade pip virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install --upgrade pip
flake8:
rules:
- if: $CI_COMMIT_TAG == null
changes:
- "**/*.py"
script:
- pip install --upgrade flake8 Flake8-pyproject
- flake8 .
black:
rules:
- if: $CI_COMMIT_TAG == null
changes:
- "**/*.py"
script:
- pip install --upgrade black[jupyter]
- black --check .
cffconvert:
script:
- pip install --upgrade cffconvert
- cffconvert --validate