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 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-22 10:42:10 +01:00
parent 625c089284
commit ff31d35782

View File

@@ -8,9 +8,9 @@ test:
before_script: before_script:
- pip install uv - pip install uv
script: script:
- cd padelnomics && uv sync - uv sync
- uv run pytest tests/ -x -q - uv run pytest web/tests/ -x -q
- uv run ruff check src/ tests/ - uv run ruff check web/src/ web/tests/
rules: rules:
- if: $CI_COMMIT_BRANCH == "master" - if: $CI_COMMIT_BRANCH == "master"
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
@@ -30,7 +30,7 @@ deploy:
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
script: 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 APP_NAME=$APP_NAME
SECRET_KEY=$SECRET_KEY SECRET_KEY=$SECRET_KEY
BASE_URL=$BASE_URL BASE_URL=$BASE_URL
@@ -56,5 +56,5 @@ deploy:
LITESTREAM_R2_SECRET_ACCESS_KEY=$LITESTREAM_R2_SECRET_ACCESS_KEY LITESTREAM_R2_SECRET_ACCESS_KEY=$LITESTREAM_R2_SECRET_ACCESS_KEY
LITESTREAM_R2_ENDPOINT=$LITESTREAM_R2_ENDPOINT LITESTREAM_R2_ENDPOINT=$LITESTREAM_R2_ENDPOINT
ENVEOF 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" - ssh "$DEPLOY_USER@$DEPLOY_HOST" "cd /opt/padelnomics && git pull origin master && ./deploy.sh"