Migrate from PDM to UV #2109
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backend checks | |
on: | |
pull_request: | |
paths: | |
- "backend/**/*" | |
- "backend/*" | |
- ".github/workflows/backend-checks.yml" | |
jobs: | |
check-migrations: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: backend | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11.6" | |
- run: | | |
pip install pdm==2.21.0 uv==0.5.5 | |
pdm config use_uv true | |
- name: Cache PDM | |
uses: actions/cache@v4 | |
id: cache-deps | |
with: | |
path: backend/.venv | |
key: pdm-${{ hashFiles('**/pdm.lock') }}-2 | |
- name: Install python dependencies | |
if: steps.cache-deps.outputs.cache-hit != 'true' | |
run: pdm install | |
- name: Check missing not pushed migrations | |
run: pdm run python manage.py makemigrations --check | |
env: | |
DJANGO_SETTINGS_MODULE: pycon.settings.test | |
STRIPE_SECRET_API_KEY: "" | |
STRIPE_SUBSCRIPTION_PRICE_ID: "" | |
STRIPE_WEBHOOK_SIGNATURE_SECRET: "" | |
CELERY_BROKER_URL: "" | |
CELERY_RESULT_BACKEND: "" |