Skip to content

Commit

Permalink
fix(attempt): attempt 47
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Sep 19, 2024
1 parent a4597ab commit 970fbc4
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 7 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Check collectstatic

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version-file: '.python-version'

- name: Cache Python dependencies
uses: actions/cache@v4
env:
Expand All @@ -20,12 +24,28 @@ jobs:
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-
${{ runner.os }}-
- name: Install Python dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements/requirements.txt -r requirements/prod-requirements.txt
- name: Debug Information
run: |
pwd
ls -R
cat app/manage.py
cat app/pydotorg/settings/static.py
grep -n "INSTALLED_APPS" app/pydotorg/settings/base.py
- name: Run collectstatic
run: |
export PYTHONPATH=$PYTHONPATH:${{ github.workspace }}/app
cd app
DJANGO_SETTINGS_MODULE=pydotorg.settings.static python manage.py collectstatic --noinput
export PYTHONPATH=$PYTHONPATH:${{ github.workspace }}
cd ${{ github.workspace }}
echo "PYTHONPATH: $PYTHONPATH"
echo "Current directory: $(pwd)"
ls -la
python -c "import sys; print('Python path:', sys.path)"
python -c "import django; print('Django version:', django.__version__)"
DJANGO_SETTINGS_MODULE=app.pydotorg.settings.static python -c "from django.conf import settings; print('INSTALLED_APPS:', settings.INSTALLED_APPS)"
DJANGO_SETTINGS_MODULE=app.pydotorg.settings.static python app/manage.py collectstatic --noinput
2 changes: 1 addition & 1 deletion app/pydotorg/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@

### Pipeline

from .pipeline import PIPELINE
from app.pydotorg.settings.pipeline import PIPELINE

### contrib.messages

Expand Down
2 changes: 1 addition & 1 deletion app/pydotorg/settings/cabotage.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from decouple import Csv

from .base import *
from app.pydotorg.settings.base import *

DEBUG = TEMPLATE_DEBUG = False

Expand Down
2 changes: 1 addition & 1 deletion app/pydotorg/settings/local.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import *
from app.pydotorg.settings.base import *
import os

DEBUG = True
Expand Down
2 changes: 1 addition & 1 deletion app/pydotorg/settings/static.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import *
from app.pydotorg.settings.base import *

DEBUG = TEMPLATE_DEBUG = False

Expand Down

0 comments on commit 970fbc4

Please sign in to comment.