Add Django 5.2 to the CI and declare support #272
Workflow file for this run
This file contains hidden or 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: Check | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: build and push | |
uses: docker/build-push-action@v6 | |
with: | |
tags: django-pg-zero-downtime-migrations:latest | |
outputs: type=docker,dest=${{ runner.temp }}/django-pg-zero-downtime-migrations-image.tar | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: django-pg-zero-downtime-migrations-image | |
path: ${{ runner.temp }}/django-pg-zero-downtime-migrations-image.tar | |
check: | |
needs: build | |
strategy: | |
fail-fast: false | |
matrix: | |
tox-filter: | |
- "py3.8" | |
- "py3.9" | |
- "py3.10" | |
- "py3.11" | |
- "py3.12" | |
- "py3.13" | |
name: run checks ${{ matrix.tox-filter }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Download artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: django-pg-zero-downtime-migrations-image | |
path: ${{ runner.temp }} | |
- name: Load Docker image | |
run: | | |
docker load --input ${{ runner.temp }}/django-pg-zero-downtime-migrations-image.tar | |
docker image ls -a | |
- name: pull DB images | |
run: docker compose pull --quiet --ignore-buildable | |
- name: run checks | |
run: docker compose run --rm django-pg-zero-downtime-migrations-tests tox -f ${{ matrix.tox-filter }} |