Test `PIPENV_VENV_IN_PROJECT` in CI

This commit is contained in:
Christopher C. Wells 2021-11-07 12:53:57 -08:00
parent 81aa3b25b0
commit 9c1ba21628
1 changed files with 10 additions and 9 deletions

View File

@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: babybuddy.settings.ci
PIPENV_VENV_IN_PROJECT: enabled
strategy:
max-parallel: 4
matrix:
@ -29,18 +30,18 @@ jobs:
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
# - name: Cache Python dependencies
# id: cache-pipenv
# uses: actions/cache@v2
# with:
# path: ~/.local/share/virtualenvs
# key: ${{ runner.os }}-python-${{ matrix.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
# restore-keys: |
# ${{ runner.os }}-python-${{ matrix.python-version }}-pipenv-
- name: Cache Python dependencies
id: cache-pipenv
uses: actions/cache@v2
with:
path: ./.venv
key: ${{ runner.os }}-python-${{ matrix.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-python-${{ matrix.python-version }}-pipenv-
- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pipenv install --deploy --dev
pipenv install --dev --verbose
- run: gulp lint
- run: gulp coverage
- name: Submit results to Coveralls