@@ -87,6 +87,7 @@ describe('run', () => {
87
87
describe ( 'Validate unchanged cache is not saved' , ( ) => {
88
88
it ( 'should not save cache for pip' , async ( ) => {
89
89
inputs [ 'cache' ] = 'pip' ;
90
+ inputs [ 'python-version' ] = '3.10.0' ;
90
91
91
92
await run ( ) ;
92
93
@@ -103,6 +104,7 @@ describe('run', () => {
103
104
104
105
it ( 'should not save cache for pipenv' , async ( ) => {
105
106
inputs [ 'cache' ] = 'pipenv' ;
107
+ inputs [ 'python-version' ] = '3.10.0' ;
106
108
107
109
await run ( ) ;
108
110
@@ -121,6 +123,7 @@ describe('run', () => {
121
123
describe ( 'action saves the cache' , ( ) => {
122
124
it ( 'saves cache from pip' , async ( ) => {
123
125
inputs [ 'cache' ] = 'pip' ;
126
+ inputs [ 'python-version' ] = '3.10.0' ;
124
127
getStateSpy . mockImplementation ( ( name : string ) => {
125
128
if ( name === State . CACHE_MATCHED_KEY ) {
126
129
return requirementsHash ;
@@ -147,6 +150,7 @@ describe('run', () => {
147
150
148
151
it ( 'saves cache from pipenv' , async ( ) => {
149
152
inputs [ 'cache' ] = 'pipenv' ;
153
+ inputs [ 'python-version' ] = '3.10.0' ;
150
154
getStateSpy . mockImplementation ( ( name : string ) => {
151
155
if ( name === State . CACHE_MATCHED_KEY ) {
152
156
return pipFileLockHash ;
@@ -173,6 +177,7 @@ describe('run', () => {
173
177
174
178
it ( 'saves cache from poetry' , async ( ) => {
175
179
inputs [ 'cache' ] = 'poetry' ;
180
+ inputs [ 'python-version' ] = '3.10.0' ;
176
181
getStateSpy . mockImplementation ( ( name : string ) => {
177
182
if ( name === State . CACHE_MATCHED_KEY ) {
178
183
return poetryLockHash ;
@@ -199,6 +204,7 @@ describe('run', () => {
199
204
200
205
it ( 'saves with -1 cacheId , should not fail workflow' , async ( ) => {
201
206
inputs [ 'cache' ] = 'poetry' ;
207
+ inputs [ 'python-version' ] = '3.10.0' ;
202
208
getStateSpy . mockImplementation ( ( name : string ) => {
203
209
if ( name === State . STATE_CACHE_PRIMARY_KEY ) {
204
210
return poetryLockHash ;
@@ -227,6 +233,7 @@ describe('run', () => {
227
233
228
234
it ( 'saves with error from toolkit, should not fail the workflow' , async ( ) => {
229
235
inputs [ 'cache' ] = 'npm' ;
236
+ inputs [ 'python-version' ] = '3.10.0' ;
230
237
getStateSpy . mockImplementation ( ( name : string ) => {
231
238
if ( name === State . STATE_CACHE_PRIMARY_KEY ) {
232
239
return poetryLockHash ;
0 commit comments