Skip to content

build(deps): bump abatilo/actions-poetry from 2 to 3 #63

build(deps): bump abatilo/actions-poetry from 2 to 3

build(deps): bump abatilo/actions-poetry from 2 to 3 #63

Workflow file for this run

name: Check migrations
on:
pull_request:
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
migrations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install poetry
uses: abatilo/actions-poetry@v3
- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install --no-root --no-interaction
- name: Tests for missing migrations
env:
DEBUG: True
DATABASE_URL: 'sqlite://'
run: poetry run kockatykalendar/manage.py makemigrations --check