-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ls testing dir change added linting tools added dev requirement file updated install testing tests added cp of .env file checking enviroment files testing cat fixed cat command
- Loading branch information
1 parent
e3b78f0
commit 3ea0b3b
Showing
6 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
SECRET_KEY='django-insecure-w!h85bp^$$e8gm%c23r!0%9i7yzd=6w$$s&ic+6!%306&kj8@k*5' | ||
DEBUG=True | ||
DB_HOST=db | ||
DB_PORT=5432 | ||
DB_NAME=term_db | ||
DB_USER=sadilar | ||
DB_PASSWORD=sadilar | ||
LOGGING_FILE=logs/debug.log | ||
LOGGING_HANDLERS_LEVEL=INFO | ||
LOGGING_LOGGERS_LEVEL=INFO | ||
LOGGING_LOGGERS_DJANGO_LEVEL=INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Testing Django | ||
on: [ pull_request, push ] # activates the workflow when there is a push or pull request in the repo | ||
jobs: | ||
test_project: | ||
runs-on: ubuntu-latest # operating system your code will run on | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements-test.txt | ||
- name: Run linting tools | ||
run: | | ||
cd app/ | ||
ruff format . | ||
- name: Run Tests | ||
run: | | ||
cp .env.testing app/.env | ||
cd app/ | ||
mkdir static_files | ||
python manage.py test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-r requirements.txt | ||
django-extensions | ||
ruff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ django==5.0.2 | |
psycopg2-binary | ||
gunicorn | ||
whitenoise | ||
django-environ |