ci: refactor database environment variable configuration for Gitea Actions compatibility
CI / Generate Certificates (push) Successful in 57s
CI / Frontend CI (push) Successful in 1m25s
CI / Backend CI (push) Successful in 1m28s
CI / E2E Tests (push) Failing after 3m56s

This commit is contained in:
ramvignesh-b
2026-05-04 23:48:45 +05:30
parent c0ee71ccc8
commit f0d9793fc3
+10 -6
View File
@@ -11,8 +11,6 @@ env:
DB_NAME: piku_test_db
DB_USER: test
DB_PASSWORD: password123
DB_HOST: 127.0.0.1
DB_PORT: 5442
jobs:
setup-environment:
@@ -95,13 +93,19 @@ jobs:
path: certs
key: certs-${{ runner.os }}-${{ github.sha }}
- name: Setup DB connection Variables
- name: Lint & Test
run: |
cp ../.env.example ../.env
uv sync
- name: Lint & Test
run: |
if [ "$GITEA_ACTIONS" = "true" ]; then
export DB_HOST="postgres"
export DB_PORT="5432"
else
export DB_HOST="127.0.0.1"
export DB_PORT="5442"
fi
uv run ruff check
uv run python manage.py test