CI/gitiea ci compatibility #1
@@ -88,13 +88,15 @@ jobs:
|
|||||||
name: ssl-certs
|
name: ssl-certs
|
||||||
path: certs/
|
path: certs/
|
||||||
|
|
||||||
- name: Setup Environment
|
- name: Setup & Test
|
||||||
run: |
|
run: |
|
||||||
cp ../.env.example ../.env
|
cp ../.env.example ../.env
|
||||||
uv sync
|
uv sync
|
||||||
|
|
||||||
export DB_NAME="piku__test"
|
export DB_NAME="piku__test"
|
||||||
export DB_USER="test"
|
export DB_USER="test"
|
||||||
export DB_PASSWORD="password123"
|
export DB_PASSWORD="password123"
|
||||||
|
|
||||||
if [ "$GITEA_ACTIONS" = "true" ]; then
|
if [ "$GITEA_ACTIONS" = "true" ]; then
|
||||||
export DB_HOST="db"
|
export DB_HOST="db"
|
||||||
export DB_PORT="5432"
|
export DB_PORT="5432"
|
||||||
@@ -103,8 +105,6 @@ jobs:
|
|||||||
export DB_PORT="5442"
|
export DB_PORT="5442"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Lint & Test
|
|
||||||
run: |
|
|
||||||
uv run ruff check
|
uv run ruff check
|
||||||
uv run python manage.py test
|
uv run python manage.py test
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user