Skip to content

Write GitHub Action workflow to verify template works #15

@ipmb

Description

@ipmb

Requirements:

  • set to run on the main branch once per week and on any push
  • steps would be something like:
    • setup Python
    • run
      pip install django
      django-admin.py startproject --template=https://github.com/lincolnloop/django-layout/zipball/main --extension=py,rst,gitignore,cfg,in,yml,json,dockerignore --name=Makefile,Dockerfile testproj
    • in the testproj directory, start the services and wait for django migrations to finish (things should be up-and-running by then)
      docker compose up -d
      docker attach $(docker compose ps -q django-migrate)
    • verify you can connect to the site: (I think you get a 200 status code on a new project setup?)
      curl -I --retry 10 --retry-connrefused --fail localhost:8000
    • verify all the services are running
      docker ps  # show service status for debugging
      test $(docker ps -q | wc -l) = "2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions