forked from numerique-gouv/sites-faciles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout de blocs manquants (numerique-gouv#245)
* Add missing TextAndCTA block from the common streamfield blocks * Don't run the pending migrations check while in draft mode * Try with a separate workflow for migration checks * Add python 3.13 to tested versions * update dependencies * Update stepper * Update translations * Add imageandtext and alert to the fullwidth background field * Add content * Fix CI * Add migrations
- Loading branch information
Showing
16 changed files
with
19,543 additions
and
203 deletions.
There are no files selected for viewing
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: 🔮 CI - Migrations Check | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
|
||
jobs: | ||
build: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
env: | ||
DJANGO_SETTINGS_MODULE: config.settings_test | ||
PYTHONPATH: . | ||
strategy: | ||
matrix: | ||
python-version: ["3.12"] | ||
services: | ||
postgres: | ||
image: postgres:14-alpine | ||
env: | ||
POSTGRES_USER: dju | ||
POSTGRES_PASSWORD: djpwd | ||
POSTGRES_DB: djdb | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: 🐍 Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: 🌍 Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
pip install ruff | ||
poetry install --no-root | ||
- name: 📄 Copy empty .env.test to .env | ||
run: | | ||
cp .env.test .env | ||
- name: 🚧 Check pending migrations | ||
run: | | ||
poetry run django-admin makemigrations --check --dry-run --noinput |
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
Oops, something went wrong.