@@ -43,22 +43,30 @@ jobs:
4343 steps :
4444 - uses : actions/checkout@v3
4545 - name : Setup Python
46+ id : cache-pipenv
4647 uses : ./
4748 with :
4849 python-version : ${{ matrix.python-version }}
4950 cache : ' pipenv'
5051 - name : Install pipenv
5152 run : curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
52- - name : Install dependencies
53+ - name : Prepare environment
5354 shell : pwsh
5455 run : |
5556 mv ./__tests__/data/Pipfile.lock .
5657 mv ./__tests__/data/Pipfile .
58+ mv ./__tests__/test-pipenv.py .
59+ - name : Install dependencies
60+ shell : pwsh
61+ if : steps.cache-pipenv.outputs.cache-hit != 'true'
62+ run : |
5763 if ("${{ matrix.python-version }}" -Match "pypy") {
58- pipenv install --keep-outdated -- python pypy
64+ pipenv install --python pypy # --keep-outdated
5965 } else {
60- pipenv install --keep-outdated -- python ${{ matrix.python-version }}
66+ pipenv install --python ${{ matrix.python-version }} # --keep-outdated
6167 }
68+ - name : Run Python Script
69+ run : pipenv run python test-pipenv.py
6270
6371 python-poetry-dependencies-caching :
6472 name : Test poetry (Python ${{ matrix.python-version}}, ${{ matrix.os }})
@@ -112,20 +120,28 @@ jobs:
112120 steps :
113121 - uses : actions/checkout@v3
114122 - name : Setup Python
123+ id : cache-pipenv
115124 uses : ./
116125 with :
117126 python-version : ${{ matrix.python-version }}
118127 cache : ' pipenv'
119128 cache-dependency-path : ' **/pipenv-requirements.txt'
120129 - name : Install pipenv
121130 run : curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
122- - name : Install dependencies
131+ - name : Prepare environment
123132 shell : pwsh
124133 run : |
125134 mv ./__tests__/data/Pipfile.lock .
126135 mv ./__tests__/data/Pipfile .
136+ mv ./__tests__/test-pipenv.py .
137+ - name : Install dependencies
138+ shell : pwsh
139+ if : steps.cache-pipenv.outputs.cache-hit != 'true'
140+ run : |
127141 if ("${{ matrix.python-version }}" -Match "pypy") {
128- pipenv install --keep-outdated -- python pypy
142+ pipenv install --python pypy # --keep-outdated
129143 } else {
130- pipenv install --keep-outdated -- python ${{ matrix.python-version }}
144+ pipenv install --python ${{ matrix.python-version }} # --keep-outdated
131145 }
146+ - name : Run Python Script
147+ run : pipenv run python test-pipenv.py
0 commit comments