Skip to content

Instantly share code, notes, and snippets.

@ConfidenceYobo
Last active December 27, 2024 13:57
Show Gist options
  • Select an option

  • Save ConfidenceYobo/189e4af908788a7dfaddda0505a312d5 to your computer and use it in GitHub Desktop.

Select an option

Save ConfidenceYobo/189e4af908788a7dfaddda0505a312d5 to your computer and use it in GitHub Desktop.

Revisions

  1. ConfidenceYobo revised this gist Aug 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion django-git-workflow.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    #### Step 1

    In project root directorythe create a folder called '.github'
    In project root directory the create a folder called '.github'

    #### Step 2

  2. ConfidenceYobo revised this gist Jul 3, 2020. 1 changed file with 36 additions and 36 deletions.
    72 changes: 36 additions & 36 deletions django-git-workflow.md
    Original file line number Diff line number Diff line change
    @@ -12,51 +12,51 @@ Create a file in the format workflows/django.yml

    Add the following snippet to the file
    ```yaml
    name: Django CI
    name: Django CI

    on:
    push:
    branches: [ master ]
    pull_request:
    branches: [ master ]
    on:
    push:
    branches: [ master ]
    pull_request:
    branches: [ master ]

    jobs:
    build:
    jobs:
    build:

    runs-on: ubuntu-latest
    strategy:
    max-parallel: 4
    matrix:
    python-version: [3.6, 3.7, 3.8]
    runs-on: ubuntu-latest
    strategy:
    max-parallel: 4
    matrix:
    python-version: [3.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
    uses: actions/setup-python@v1
    with:
    python-version: ${{ matrix.python-version }}
    - name: Install Dependencies
    run: |
    python -m pip install --upgrade pip
    pip install -r ./web/requirements.txt
    - name: Run Tests'
    env:
    SECRET_KEY: 69tgugtg%^fgJO&*&
    DB_NAME: mydb
    DB_USER: userdb
    DB_PASSWORD: password
    DJANGO_ALLOWED_HOSTS: localhost 127.0.0.1 [::1]
    DEBUG_MODE: False
    TIME_ZONE: Africa/Bangui
    CACHE_KEY_PREFIX: Halo
    run: |
    python ./web/manage.py test
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
    uses: actions/setup-python@v1
    with:
    python-version: ${{ matrix.python-version }}
    - name: Install Dependencies
    run: |
    python -m pip install --upgrade pip
    pip install -r ./web/requirements.txt
    - name: Run Tests'
    env:
    SECRET_KEY: 69tgugtg%^fgJO&*&
    DB_NAME: mydb
    DB_USER: userdb
    DB_PASSWORD: password
    DJANGO_ALLOWED_HOSTS: localhost 127.0.0.1 [::1]
    DEBUG_MODE: False
    TIME_ZONE: Africa/Bangui
    CACHE_KEY_PREFIX: Halo
    run: |
    python ./web/manage.py test
    ```
    #### Step 4
    Do `git add . && git commit -m 'Add Django git workflow'`
    then do text `git push origin master(branch name)` text
    then do `git push origin master(branch name)`

    #### Step 5

  3. ConfidenceYobo revised this gist Jul 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion django-git-workflow.md
    Original file line number Diff line number Diff line change
    @@ -62,4 +62,4 @@ then do text `git push origin master(branch name)` text

    Goto the github repository and click actions, when you do push or a pull request to the master branch it will be added as a job on git workflow.

    #### Happy Hacking.
    #### *Happy Hacking.*
  4. ConfidenceYobo revised this gist Jul 3, 2020. 1 changed file with 13 additions and 13 deletions.
    26 changes: 13 additions & 13 deletions django-git-workflow.md
    Original file line number Diff line number Diff line change
    @@ -3,12 +3,12 @@
    #### Step 1

    In project root directorythe create a folder called '.github'
    #########
    Step 2

    #### Step 2

    Create a file in the format workflows/django.yml
    #########
    Step 3

    #### Step 3

    Add the following snippet to the file
    ```yaml
    @@ -52,14 +52,14 @@ Add the following snippet to the file
    run: |
    python ./web/manage.py test
    ```
    #########
    Step 4
    Do `git add . && git commit -m 'Add Django git workflow'`
    then do text `git push origin master(branch name)` text
    ########
    Step 5
    #### Step 4
    Do `git add . && git commit -m 'Add Django git workflow'`
    then do text `git push origin master(branch name)` text

    #### Step 5

    Goto the github repository and click actions, when you do push or a pull request to the master branch it will be added as a job on git workflow.
    Goto the github repository and click actions, when you do push or a pull request to the master branch it will be added as a job on git workflow.

    Happy Hacking.
    #### Happy Hacking.
  5. ConfidenceYobo revised this gist Jul 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion django-git-workflow.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Setup Github Actions for Django Project

    ####Step 1
    #### Step 1

    In project root directorythe create a folder called '.github'
    #########
  6. ConfidenceYobo revised this gist Jul 3, 2020. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions django-git-workflow.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@
    # Setup Github Actions for Django Project

    #########
    Step 1
    ####Step 1

    In project root directorythe create a folder called '.github'
    #########
  7. ConfidenceYobo revised this gist Jul 3, 2020. 2 changed files with 1 addition and 3 deletions.
    Empty file removed Setting up Git workflow for django
    Empty file.
    4 changes: 1 addition & 3 deletions django-git-workflow.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,4 @@
    #########################################################
    Setup Github Actions for Django Project
    #########################################################
    # Setup Github Actions for Django Project

    #########
    Step 1
  8. ConfidenceYobo revised this gist Jul 3, 2020. 3 changed files with 68 additions and 68 deletions.
    68 changes: 0 additions & 68 deletions Setting Git workflow for django
    Original file line number Diff line number Diff line change
    @@ -1,68 +0,0 @@
    #########################################################
    Setup Github Actions for Django Project
    #########################################################

    #########
    Step 1

    In project root directorythe create a folder called '.github'
    #########
    Step 2

    Create a file in the format workflows/django.yml
    #########
    Step 3

    Add the following snippet to the file
    ```yaml
    name: Django CI

    on:
    push:
    branches: [ master ]
    pull_request:
    branches: [ master ]

    jobs:
    build:

    runs-on: ubuntu-latest
    strategy:
    max-parallel: 4
    matrix:
    python-version: [3.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
    uses: actions/setup-python@v1
    with:
    python-version: ${{ matrix.python-version }}
    - name: Install Dependencies
    run: |
    python -m pip install --upgrade pip
    pip install -r ./web/requirements.txt
    - name: Run Tests'
    env:
    SECRET_KEY: 69tgugtg%^fgJO&*&
    DB_NAME: mydb
    DB_USER: userdb
    DB_PASSWORD: password
    DJANGO_ALLOWED_HOSTS: localhost 127.0.0.1 [::1]
    DEBUG_MODE: False
    TIME_ZONE: Africa/Bangui
    CACHE_KEY_PREFIX: Halo
    run: |
    python ./web/manage.py test
    ```
    #########
    Step 4

    Do `git add . && git commit -m 'Add Django git workflow'`
    then do text `git push origin master(branch name)` text
    ########
    Step 5

    Goto the github repository and click actions, when you do push or a pull request to the master branch it will be added as a job on git workflow.

    Happy Hacking.
    Empty file.
    68 changes: 68 additions & 0 deletions django-git-workflow.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,68 @@
    #########################################################
    Setup Github Actions for Django Project
    #########################################################

    #########
    Step 1

    In project root directorythe create a folder called '.github'
    #########
    Step 2

    Create a file in the format workflows/django.yml
    #########
    Step 3

    Add the following snippet to the file
    ```yaml
    name: Django CI

    on:
    push:
    branches: [ master ]
    pull_request:
    branches: [ master ]

    jobs:
    build:

    runs-on: ubuntu-latest
    strategy:
    max-parallel: 4
    matrix:
    python-version: [3.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
    uses: actions/setup-python@v1
    with:
    python-version: ${{ matrix.python-version }}
    - name: Install Dependencies
    run: |
    python -m pip install --upgrade pip
    pip install -r ./web/requirements.txt
    - name: Run Tests'
    env:
    SECRET_KEY: 69tgugtg%^fgJO&*&
    DB_NAME: mydb
    DB_USER: userdb
    DB_PASSWORD: password
    DJANGO_ALLOWED_HOSTS: localhost 127.0.0.1 [::1]
    DEBUG_MODE: False
    TIME_ZONE: Africa/Bangui
    CACHE_KEY_PREFIX: Halo
    run: |
    python ./web/manage.py test
    ```
    #########
    Step 4
    Do `git add . && git commit -m 'Add Django git workflow'`
    then do text `git push origin master(branch name)` text
    ########
    Step 5

    Goto the github repository and click actions, when you do push or a pull request to the master branch it will be added as a job on git workflow.

    Happy Hacking.
  9. ConfidenceYobo revised this gist Jul 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Setting Git workflow for django
    Original file line number Diff line number Diff line change
    @@ -59,7 +59,7 @@ Add the following snippet to the file
    Step 4

    Do `git add . && git commit -m 'Add Django git workflow'`
    then do `git push origin master(branch name)`
    then do text `git push origin master(branch name)` text
    ########
    Step 5

  10. ConfidenceYobo revised this gist Jul 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Setting Git workflow for django
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ Create a file in the format workflows/django.yml
    Step 3

    Add the following snippet to the file
    ```
    ```yaml
    name: Django CI

    on:
  11. ConfidenceYobo created this gist Jul 3, 2020.
    68 changes: 68 additions & 0 deletions Setting Git workflow for django
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,68 @@
    #########################################################
    Setup Github Actions for Django Project
    #########################################################

    #########
    Step 1

    In project root directorythe create a folder called '.github'
    #########
    Step 2

    Create a file in the format workflows/django.yml
    #########
    Step 3

    Add the following snippet to the file
    ```
    name: Django CI

    on:
    push:
    branches: [ master ]
    pull_request:
    branches: [ master ]

    jobs:
    build:

    runs-on: ubuntu-latest
    strategy:
    max-parallel: 4
    matrix:
    python-version: [3.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
    uses: actions/setup-python@v1
    with:
    python-version: ${{ matrix.python-version }}
    - name: Install Dependencies
    run: |
    python -m pip install --upgrade pip
    pip install -r ./web/requirements.txt
    - name: Run Tests'
    env:
    SECRET_KEY: 69tgugtg%^fgJO&*&
    DB_NAME: mydb
    DB_USER: userdb
    DB_PASSWORD: password
    DJANGO_ALLOWED_HOSTS: localhost 127.0.0.1 [::1]
    DEBUG_MODE: False
    TIME_ZONE: Africa/Bangui
    CACHE_KEY_PREFIX: Halo
    run: |
    python ./web/manage.py test
    ```
    #########
    Step 4

    Do `git add . && git commit -m 'Add Django git workflow'`
    then do `git push origin master(branch name)`
    ########
    Step 5

    Goto the github repository and click actions, when you do push or a pull request to the master branch it will be added as a job on git workflow.

    Happy Hacking.