Use --locked when sync deps on CI

This commit is contained in:
Bruno Alla 2025-09-07 13:37:24 +01:00
parent 68c230baf6
commit ae6e8f1a21
3 changed files with 3 additions and 3 deletions

View File

@ -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%}

View File

@ -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

View File

@ -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 %}