Giter Site home page Giter Site logo

griffinkelly / django-test-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uknowwhoim/django-test-action

0.0 1.0 0.0 51 KB

Github Action for running django tests

Home Page: https://github.com/marketplace/actions/django-test-ci

License: MIT License

Dockerfile 2.83% Python 44.83% Shell 52.34%

django-test-action's Introduction

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-action's People

Contributors

uknowwhoim avatar griffinkelly avatar moshe-levine avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.