Skip to content

Django Test CI

Actions
A github action to run your django tests
v0.6.1
Latest
Star (10)

Django Test CI Action

A Django CI Github Action which runs your tests with a postgres database.

NOTE: You can use the DB service of your choice for your django app, using this action won't restrict you to postgres

Arguments

settings-dir-path

The relative path of the directory containing your settings file. This is used to integrate the DB with your app.

This value is required

parallel-tests

Enable/Disable Parallel Tests. Default is false.

requirements-file

Path of the file containing the dependancies, default is requirements.txt

env-file

Path of the the file containing additional environment variables.

SECRET_KEY, DEBUG and DATABASES are automatically set, if your django app depends on any other environment variable, set them in this file or set them like this

name: Django CI
env: 
  - API_KEY: "dummy_api_key"

WARNING: Don't store sensitive data, use random dummy data only

If you have to use sensitive data, store them as a repository secret and include them in the workflow file.

steps:
  - name: Django CI
    env: 
      super_secret: ${{ secrets.SuperSecret }}

Workflow Example

uses: actions/checkout@v2
name: Django CI
uses: UKnowWhoIm/[email protected]
with:
  settings-dir-path: "testproject"

Django Test CI is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A github action to run your django tests
v0.6.1
Latest

Django Test CI is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.