Skip to content

Commit

Permalink
CI: delegate pipenv cache management to the setup-python action (#3243)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc authored Sep 19, 2024
1 parent 5196932 commit b14201a
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/docker-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: "Install pipenv"
run: |
cd docker/test
python -m pip install --upgrade pipenv wheel
- name: "Cache virtualenvs"
id: cache-pipenv
uses: actions/cache@v4
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
cache: 'pipenv'

- name: "Install dependencies"
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
cd docker/test
python -m pip install --upgrade pipenv wheel
pipenv install --deploy
- name: "Create Docker network"
Expand Down

0 comments on commit b14201a

Please sign in to comment.