39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
image: ghcr.io/astral-sh/uv:python3.12-bookworm-slim
|
|
|
|
stages:
|
|
- quality
|
|
- test
|
|
- build
|
|
|
|
variables:
|
|
UV_CACHE_DIR: "$CI_PROJECT_DIR/.uv-cache"
|
|
|
|
cache:
|
|
paths:
|
|
- .uv-cache/
|
|
|
|
before_script:
|
|
- uv sync --frozen --group dev
|
|
|
|
lint:
|
|
stage: quality
|
|
script:
|
|
- uv run ruff check src tests
|
|
- uv run ruff check src/gyxx_flow/modules/content_marketing/daily_creator_exposure_scope.py src/gyxx_flow/modules/product_commerce/market_rank_limits.py src/gyxx_flow/modules/product_commerce/market_rank_product_import.py
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- uv run pytest
|
|
- uv run pytest tests/modules/content_marketing/test_daily_creator_exposure_scope.py tests/modules/content_marketing/test_chanmama_refresh_before_export.py tests/modules/content_marketing/test_daily_exposure_fields.py
|
|
- uv run pytest tests/modules/product_commerce/test_market_rank_limits.py tests/modules/product_commerce/test_market_rank_product_import.py
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- uv build
|
|
artifacts:
|
|
paths:
|
|
- dist/
|
|
expire_in: 7 days
|