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