Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update migrations compatibility workflow (#16198)
Marcin Gębalaa98c6e8e777c
diff --git a/.github/workflows/test-migrations-compatibility.yml b/.github/workflows/test-migrations-compatibility.ymlindex 10180d8b65..eb179984e3 100644--- a/.github/workflows/test-migrations-compatibility.yml+++ b/.github/workflows/test-migrations-compatibility.yml@@ -38,7 +38,7 @@ jobs:- name: Install and configure poetryrun: |- python -m pip install poetry==1.7.0+ pip install poetry==1.7.0- name: Restore venv from cacheid: cached-poetry-dependencies-restore@@ -54,7 +54,15 @@ jobs:- name: Install dependenciesif: steps.cached-poetry-dependencies-restore.outputs.cache-hit != 'true'run: |- python -m poetry install --sync --no-root+ poetry env use python3.9+ poetry install --sync --no-root++ - name: Add Python Virtual Environment to PATH+ run: |+ # Note: requires `poetry env use` to be ran, otherwise poetry+ # may not be able to find which virtual environment is in use.+ # Ticket: https://github.com/python-poetry/poetry/issues/7190+ echo "$(poetry env info -p)"/bin >> $GITHUB_PATH- name: Cache venvuses: actions/cache/save@v4@@ -66,7 +74,7 @@ jobs:- name: Migraterun: |export DJANGO_SETTINGS_MODULE=saleor.tests.settings- python -m poetry run python manage.py migrate+ python manage.py migrate- name: Checkout baseuses: actions/checkout@v4@@ -76,9 +84,9 @@ jobs:# Sync dependencies to ensure consistency with base branch- name: Synchronize dependenciesrun: |- python -m poetry install --sync --no-root+ poetry install --sync --no-root- name: Run testsrun: |export PYTEST_DB_URL=$DATABASE_URL- python -m poetry run pytest -n 0 --reuse-db+ pytest -n 0 --reuse-db