Skip to content

Commit

Permalink
Merge pull request #426 from GitGuardian/agateau/unbreak-lock-usage
Browse files Browse the repository at this point in the history
chore: do not use lock file except on 3.9
  • Loading branch information
agateau-gg authored Nov 25, 2022
2 parents 2d70f87 + 0d7fa2e commit f4f5d43
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:
name: Build and Test
runs-on: ${{ matrix.os }}
env:
PIPENV_ARGS: ''
# We skip pipenv lockfile by default, because a Pipfile.lock should only
# be used for the Python version it was generated for.
PIPENV_SKIP_LOCK: 1
strategy:
fail-fast: false
matrix:
Expand All @@ -59,15 +61,15 @@ jobs:

- name: Use Pipfile.lock on locked version of Python
# Keep version in sync with scripts/update-pipfile-lock/Dockerfile
if: ${{ matrix.python-version }} == "3.9"
if: matrix.python-version == '3.9'
run: |
echo "PIPENV_ARGS=--ignore-pipfile" >> $GITHUB_ENV
echo "PIPENV_SKIP_LOCK=0" >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pipenv
pipenv install --system --dev $PIPENV_ARGS
pipenv install --system --dev
- name: Install Windows dev dependencies
if: matrix.os == 'windows-2022'
Expand Down

0 comments on commit f4f5d43

Please sign in to comment.