generated from codersforcauses/django-nextjs-template
-
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.
Merge pull request #113 from codersforcauses/i57-create-events-home-page
Home page linked to Events
- Loading branch information
Showing
27 changed files
with
248 additions
and
183 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 |
---|---|---|
|
@@ -53,27 +53,17 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Set up Python Env | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Setup Poetry 🏗 | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
|
||
- name: Cache .venv 📦 | ||
id: cached-poetry-dependencies | ||
uses: actions/[email protected] | ||
with: | ||
path: server/.venv | ||
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | ||
cache: "poetry" | ||
|
||
- name: Install dependencies 👨🏻💻 | ||
run: poetry install | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
|
||
- name: Run Migrations 🕊️ | ||
env: | ||
|
@@ -83,9 +73,7 @@ jobs: | |
POSTGRES_PORT: 5432 | ||
EMAIL_PORT: 1025 | ||
FRONTEND_URL: http://localhost:3000 | ||
run: | | ||
source .venv/bin/activate | ||
python manage.py migrate | ||
run: poetry run python manage.py migrate | ||
|
||
- name: Run tests 🧪 | ||
env: | ||
|
@@ -97,10 +85,9 @@ jobs: | |
EMAIL_PORT: 1025 | ||
FRONTEND_URL: http://localhost:3000 | ||
run: | | ||
source .venv/bin/activate | ||
python3 -m pip install coverage | ||
coverage run manage.py test | ||
coverage xml | ||
poetry run python3 -m pip install coverage | ||
poetry run coverage run manage.py test | ||
poetry run coverage xml | ||
- name: Upload Coverage ☂️ | ||
uses: codecov/codecov-action@v3 | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
REACT_EDITOR=code | ||
|
||
APP_ENV=DEVELOPMENT | ||
NEXT_PUBLIC_BACKEND_URL="http://localhost:8000/api" | ||
NEXT_PUBLIC_BACKEND_URL="http://localhost:8000/api" | ||
NEXT_PUBLIC_BACKEND_IMAGES_URL="http://localhost:8000/" |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -67,4 +67,4 @@ | |
"tailwindcss": "^3.4.1", | ||
"typescript": "^5.5.2" | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
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
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
Oops, something went wrong.