Skip to content

Bump django-stubs from 5.0.2 to 5.1.0 in /{{ cookiecutter.name }} #886

Bump django-stubs from 5.0.2 to 5.1.0 in /{{ cookiecutter.name }}

Bump django-stubs from 5.0.2 to 5.1.0 in /{{ cookiecutter.name }} #886

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
bootstrap:
runs-on: ubuntu-latest
services:
postgres:
env:
POSTGRES_PASSWORD: secret
image: postgres:16.2-alpine
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-retries 5
--health-timeout 5s
ports:
- 5432:5432
env:
DATABASE_URL: postgres://postgres:secret@localhost:5432/postgres
steps:
- name: checkout
uses: actions/checkout@v4
- name: build
uses: ./.github/actions/build
- name: bootstrap
run: |
. venv/bin/activate
make bootstrap
- name: lint the generated project
run: |
. venv/bin/activate
cd testproject
make lint
- name: save the bootstrap result
uses: actions/upload-artifact@v4
with:
name: generated
path: testproject
include-hidden-files: true
build-docker-image:
needs: bootstrap
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: build
uses: ./.github/actions/build
- name: download build artifact
uses: actions/download-artifact@v4
with:
name: generated
path: testproject
- name: setup qemu
uses: docker/setup-qemu-action@v3
- name: setup buildx
uses: docker/setup-buildx-action@v3
- name: make sure docker image is buildable
uses: docker/build-push-action@v6
with:
build-args: |
PYTHON_VERSION=${{ env.python-version }}
cache-from: type=gha
cache-to: type=gha,mode=max
context: testproject
push: false