From ff31d3578262f9e4f9471ea5fdc5d7aaa6dc14af Mon Sep 17 00:00:00 2001 From: Deeman Date: Sun, 22 Feb 2026 10:42:10 +0100 Subject: [PATCH] fix(ci): update paths after repo flatten - Remove `cd padelnomics` (subdir no longer exists) - pytest and ruff now target web/tests/ and web/src/ - Deploy stage writes .env to repo root, not padelnomics/ subdir Co-Authored-By: Claude Sonnet 4.6 --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"