Skip to content

fix: use new path ??????? #238

fix: use new path ???????

fix: use new path ??????? #238

Workflow file for this run

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:
cache-name: pythondotorg-cache-pip
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('requirements/requirements.txt', 'requirements/*-requirements.txt') }}
restore-keys: |
${{ 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 bc im bad
run: |
pwd
ls -R
echo $PYTHONPATH
python -c "import sys; print(sys.path)"
pip freeze
- name: Run collectstatic
run: |
export PYTHONPATH=$PYTHONPATH:${{ github.workspace }}/app
cd app
echo "Current directory: $(pwd)"
ls -la
DJANGO_SETTINGS_MODULE=pydotorg.settings.static python manage.py collectstatic --noinput