Skip to content

Commit

Permalink
Ajout de blocs manquants (numerique-gouv#245)
Browse files Browse the repository at this point in the history
* 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
Ash-Crow authored Dec 12, 2024
1 parent 44e660d commit b53ddbc
Show file tree
Hide file tree
Showing 16 changed files with 19,543 additions and 203 deletions.
File renamed without changes.
47 changes: 47 additions & 0 deletions .github/workflows/ci-check-migrations.yml
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
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml → .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🔮 CI
name: 🔮 CI - Main checks

on: [push]

Expand All @@ -10,7 +10,7 @@ jobs:
PYTHONPATH: .
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
services:
postgres:
image: postgres:14-alpine
Expand Down Expand Up @@ -38,9 +38,6 @@ jobs:
- name: ✨ Black & ruff
run: |
make quality
- name: 🚧 Check pending migrations # continue-on-error: true
run: |
poetry run django-admin makemigrations --check --dry-run --noinput
- name: 🤹‍ Run the unit tests
run: |
make test-unit
Expand Down
Loading

0 comments on commit b53ddbc

Please sign in to comment.