Skip to content

Commit

Permalink
Add memory usage print statements to CI/CD workflow and clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT committed Jan 3, 2025
1 parent 81caec3 commit d01fb46
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -152,6 +160,8 @@ jobs:
- 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
Expand Down Expand Up @@ -182,4 +192,7 @@ jobs:
- name: Clean up
run: |
docker stop my-container
docker rm my-container
docker rm my-container
- name: Print memory usage
run: free -h
3 changes: 0 additions & 3 deletions website/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,6 @@ def github_callback(request):
return safe_redirect_allowed(url, ALLOWED_HOSTS)


s


def google_callback(request):
ALLOWED_HOSTS = ["accounts.google.com"]
params = urllib.parse.urlencode(request.GET)
Expand Down

0 comments on commit d01fb46

Please sign in to comment.