Skip to content
Snippets Groups Projects
Commit 4cbc888e authored by Antoine Gaudron-Desjardins's avatar Antoine Gaudron-Desjardins
Browse files

ci

parent 21a28880
No related branches found
No related tags found
1 merge request!6Ci
Pipeline #43656 failed
......@@ -75,15 +75,6 @@ install:
#### ####
#######################################################################################################################################
# format:
# stage: test
# before_script:
# - source ./venv/bin/activate
# - pip install autopep8
# script:
# - autopep8 --in-place --recursive ./backend
lint:
stage: test
allow_failure: false
......@@ -105,23 +96,12 @@ test:
DB_HOST: mysql
DB_PORT: 3306
WEB_ROOT: http://localhost:3000
# SECRET_KEY: $SECRET_KEY
# TEST: "TRUE"
# STATIC_ROOT: "./"
# DJANGO_DEBUG: "FALSE"
# ALLOWED_HOSTS: ""
# DB_ENGINE: $ENGINE
# DB_NAME: $POSTGRES_DB
# DB_USER: $POSTGRES_USER
# DB_PASSWORD: $POSTGRES_PASSWORD
# DB_HOST: $POSTGRES_DB_HOST
# DB_PORT: 5432
before_script:
- source ./venv/bin/activate
script:
- cd ./backend
- python -m uvicorn main:app --port=80 --host 0.0.0.0
- curl "http://localhost/api/health"
coverage: '/Code coverage: "Application startup complete."'
#######################################################################################################################################
#### ####
......
......@@ -21,6 +21,8 @@ Navigate to [http://localhost:3001](http://localhost:3001)
### *Le linter*
So the new commits can be deployed, you'll need to use the linter from backend :
`pycodestyle --config=./setup.cnf --exclude=./env ./`
You can use autoformat with autopep8 running :
`autopep8 --in-place --global-config=./setup.cnf --recursive --exclude=./env --aggressive ./`
<br/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment