@@ -43,22 +43,30 @@ jobs:
43
43
steps :
44
44
- uses : actions/checkout@v3
45
45
- name : Setup Python
46
+ id : cache-pipenv
46
47
uses : ./
47
48
with :
48
49
python-version : ${{ matrix.python-version }}
49
50
cache : ' pipenv'
50
51
- name : Install pipenv
51
52
run : curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
52
- - name : Install dependencies
53
+ - name : Prepare environment
53
54
shell : pwsh
54
55
run : |
55
56
mv ./__tests__/data/Pipfile.lock .
56
57
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 : |
57
63
if ("${{ matrix.python-version }}" -Match "pypy") {
58
- pipenv install --keep-outdated -- python pypy
64
+ pipenv install --python pypy # --keep-outdated
59
65
} else {
60
- pipenv install --keep-outdated -- python ${{ matrix.python-version }}
66
+ pipenv install --python ${{ matrix.python-version }} # --keep-outdated
61
67
}
68
+ - name : Run Python Script
69
+ run : pipenv run python test-pipenv.py
62
70
63
71
python-poetry-dependencies-caching :
64
72
name : Test poetry (Python ${{ matrix.python-version}}, ${{ matrix.os }})
@@ -112,20 +120,28 @@ jobs:
112
120
steps :
113
121
- uses : actions/checkout@v3
114
122
- name : Setup Python
123
+ id : cache-pipenv
115
124
uses : ./
116
125
with :
117
126
python-version : ${{ matrix.python-version }}
118
127
cache : ' pipenv'
119
128
cache-dependency-path : ' **/pipenv-requirements.txt'
120
129
- name : Install pipenv
121
130
run : curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
122
- - name : Install dependencies
131
+ - name : Prepare environment
123
132
shell : pwsh
124
133
run : |
125
134
mv ./__tests__/data/Pipfile.lock .
126
135
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 : |
127
141
if ("${{ matrix.python-version }}" -Match "pypy") {
128
- pipenv install --keep-outdated -- python pypy
142
+ pipenv install --python pypy # --keep-outdated
129
143
} else {
130
- pipenv install --keep-outdated -- python ${{ matrix.python-version }}
144
+ pipenv install --python ${{ matrix.python-version }} # --keep-outdated
131
145
}
146
+ - name : Run Python Script
147
+ run : pipenv run python test-pipenv.py
0 commit comments