diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0dad679..7598307 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,9 +8,9 @@ test: before_script: - pip install uv script: - - cd padelnomics && uv sync - - uv run pytest tests/ -x -q - - uv run ruff check src/ tests/ + - uv sync + - uv run pytest web/tests/ -x -q + - uv run ruff check web/src/ web/tests/ rules: - if: $CI_COMMIT_BRANCH == "master" - if: $CI_PIPELINE_SOURCE == "merge_request_event" @@ -30,7 +30,7 @@ deploy: - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts script: - | - ssh "$DEPLOY_USER@$DEPLOY_HOST" "cat > /opt/padelnomics/padelnomics/.env" << ENVEOF + ssh "$DEPLOY_USER@$DEPLOY_HOST" "cat > /opt/padelnomics/.env" << ENVEOF APP_NAME=$APP_NAME SECRET_KEY=$SECRET_KEY BASE_URL=$BASE_URL @@ -56,5 +56,5 @@ deploy: LITESTREAM_R2_SECRET_ACCESS_KEY=$LITESTREAM_R2_SECRET_ACCESS_KEY LITESTREAM_R2_ENDPOINT=$LITESTREAM_R2_ENDPOINT ENVEOF - - ssh "$DEPLOY_USER@$DEPLOY_HOST" "chmod 600 /opt/padelnomics/padelnomics/.env" + - ssh "$DEPLOY_USER@$DEPLOY_HOST" "chmod 600 /opt/padelnomics/.env" - ssh "$DEPLOY_USER@$DEPLOY_HOST" "cd /opt/padelnomics && git pull origin master && ./deploy.sh"