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