Skip to content

Commit

Permalink
chore: add test django basic workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jumagu committed Dec 19, 2024
1 parent 89ef903 commit 0106cbc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/1-hello-world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: 1 - Hello World GitHub Actions

on:
workflow_dispatch:
push:
branches:
- master
# schedule:
# - cron: '30 15 * * *'
# push:
# branches:
# - master

jobs:
hello:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/2-test-django-basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 2 - Test Django Basic

on:
workflow_dispatch:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Requirements
run: |
python -m pip install pip --upgrade
python -m pip install -r requirements.txt
- name: Django Tests
working-directory: ./src
run: |
cd src
python manage.py test

0 comments on commit 0106cbc

Please sign in to comment.