mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-13 15:32:36 +03:00
Use --locked
when sync deps on CI
This commit is contained in:
parent
68c230baf6
commit
ae6e8f1a21
|
@ -39,7 +39,7 @@ steps:
|
||||||
{%- else %}
|
{%- else %}
|
||||||
image: ghcr.io/astral-sh/uv:python3.12
|
image: ghcr.io/astral-sh/uv:python3.12
|
||||||
commands:
|
commands:
|
||||||
- uv sync --frozen
|
- uv sync --locked
|
||||||
- uv run pytest
|
- uv run pytest
|
||||||
{%- endif%}
|
{%- endif%}
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ jobs:
|
||||||
python-version-file: ".python-version"
|
python-version-file: ".python-version"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: uv sync
|
run: uv sync --locked
|
||||||
|
|
||||||
- name: Check DB Migrations
|
- name: Check DB Migrations
|
||||||
run: uv run python manage.py makemigrations --check
|
run: uv run python manage.py makemigrations --check
|
||||||
|
|
|
@ -45,7 +45,7 @@ pytest:
|
||||||
variables:
|
variables:
|
||||||
DATABASE_URL: pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres/$POSTGRES_DB
|
DATABASE_URL: pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres/$POSTGRES_DB
|
||||||
before_script:
|
before_script:
|
||||||
- uv sync --frozen
|
- uv sync --locked
|
||||||
script:
|
script:
|
||||||
- uv run pytest
|
- uv run pytest
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user