-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
2,874 additions
and
1,795 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,6 +53,9 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-poetry- | ||
- name: Print memory usage | ||
run: free -h | ||
|
||
pre-commit: | ||
name: Run pre-commit | ||
needs: setup | ||
|
@@ -69,6 +72,8 @@ jobs: | |
python-version: 3.11.2 | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
- name: Print memory usage | ||
run: free -h | ||
|
||
code-ql: | ||
name: Run CodeQL | ||
|
@@ -132,6 +137,9 @@ jobs: | |
- uses: github/codeql-action/analyze@v2 | ||
if: ${{ steps.set-matrix.outputs.languages != '' }} | ||
|
||
- name: Print memory usage | ||
run: free -h | ||
|
||
test: | ||
name: Run Tests | ||
needs: code-ql | ||
|
@@ -147,11 +155,13 @@ jobs: | |
with: | ||
python-version: 3.11.2 | ||
- run: pip install poetry | ||
- run: poetry lock --no-update | ||
- run: poetry lock | ||
- run: poetry install | ||
- run: poetry run python manage.py collectstatic --noinput | ||
- name: Run tests | ||
run: poetry run xvfb-run --auto-servernum python manage.py test -v 3 --failfast | ||
- name: Print memory usage | ||
run: free -h | ||
|
||
docker-test: | ||
runs-on: ubuntu-latest | ||
|
@@ -176,10 +186,13 @@ jobs: | |
docker run -d --name my-container my-app | ||
- run: docker exec my-container pip install poetry | ||
- run: docker exec my-container poetry lock --no-update | ||
- run: docker exec my-container poetry install --no-dev --no-interaction | ||
- run: docker exec my-container poetry lock | ||
- run: docker exec my-container poetry install --without dev --no-interaction | ||
|
||
- name: Clean up | ||
run: | | ||
docker stop my-container | ||
docker rm my-container | ||
docker rm my-container | ||
- name: Print memory usage | ||
run: free -h |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
release: python manage.py migrate --noinput | ||
web: newrelic-admin run-program bin/start-pgbouncer uvicorn blt.asgi:application --host 0.0.0.0 --port ${PORT} | ||
#web: newrelic-admin run-program bin/start-pgbouncer uvicorn blt.asgi:application --host 0.0.0.0 --port ${PORT} | ||
web: gunicorn blt.wsgi --log-file - --workers 1 --worker-class gthread --threads 2 --timeout 120 |
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
35 changes: 35 additions & 0 deletions
35
comments/migrations/0007_remove_comment_issue_comment_content_type_and_more.py
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,35 @@ | ||
# Generated by Django 5.1.4 on 2025-01-04 19:10 | ||
|
||
import django.db.models.deletion | ||
import django.utils.timezone | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("comments", "0006_comment_author_fk"), | ||
("contenttypes", "0002_remove_content_type_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="comment", | ||
name="issue", | ||
), | ||
migrations.AddField( | ||
model_name="comment", | ||
name="content_type", | ||
field=models.ForeignKey( | ||
default=1, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="contenttypes.contenttype", | ||
), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="comment", | ||
name="object_id", | ||
field=models.PositiveIntegerField(default=1), | ||
preserve_default=False, | ||
), | ||
] |
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.