diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 8fbdc214..c35beb86 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -32,11 +32,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel - pip install -r requirements.txt + pip install pipenv + pipenv sync --dev - name: collectstatic run: | - python manage.py collectstatic --noinput + pipenv run collectstatic working-directory: ./app - name: Build a binary wheel and a source tarball run: | diff --git a/Pipfile b/Pipfile index 9e887c66..bacbd998 100644 --- a/Pipfile +++ b/Pipfile @@ -52,3 +52,4 @@ isort = "isort . -c" wait_for_db = "python manage.py wait_for_db" test = "python manage.py test api.tests" migrate = "python manage.py migrate" +collectstatic = "python manage.py collectstatic --noinput"