добавил CI
This commit is contained in:
parent
31394c5005
commit
423b763268
26
.gitlab-ci.yml
Normal file
26
.gitlab-ci.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
stages:
|
||||||
|
- linting
|
||||||
|
- black
|
||||||
|
|
||||||
|
flake8:
|
||||||
|
stage: linting
|
||||||
|
image: registry.gitlab.com/pipeline-components/flake8:latest
|
||||||
|
script:
|
||||||
|
- pip install -r requirements/test.txt
|
||||||
|
- flake8 .
|
||||||
|
only:
|
||||||
|
- main
|
||||||
|
|
||||||
|
black_check:
|
||||||
|
stage: black
|
||||||
|
image: python:3.9
|
||||||
|
script:
|
||||||
|
- pip install -r requirements/dev.txt
|
||||||
|
- black --check --config pyproject.toml .
|
||||||
|
|
||||||
|
testing:
|
||||||
|
stage: testing
|
||||||
|
script:
|
||||||
|
- pip install -r requirements/test.txt -r requirements/prod.txt
|
||||||
|
- cd lyceum
|
||||||
|
- python manage.py test
|
||||||
@ -90,19 +90,19 @@ DATABASES = {
|
|||||||
AUTH_PASSWORD_VALIDATORS = [
|
AUTH_PASSWORD_VALIDATORS = [
|
||||||
{
|
{
|
||||||
'NAME': 'django.contrib.auth.'
|
'NAME': 'django.contrib.auth.'
|
||||||
'password_validation.UserAttributeSimilarityValidator',
|
'password_validation.UserAttributeSimilarityValidator',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'NAME': 'django.contrib.auth.'
|
'NAME': 'django.contrib.auth.'
|
||||||
'password_validation.MinimumLengthValidator',
|
'password_validation.MinimumLengthValidator',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'NAME': 'django.contrib.auth.'
|
'NAME': 'django.contrib.auth.'
|
||||||
'password_validation.CommonPasswordValidator',
|
'password_validation.CommonPasswordValidator',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'NAME': 'django.contrib.auth.'
|
'NAME': 'django.contrib.auth.'
|
||||||
'password_validation.NumericPasswordValidator',
|
'password_validation.NumericPasswordValidator',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user