@@ -87,6 +87,7 @@ describe('run', () => {
8787 describe ( 'Validate unchanged cache is not saved' , ( ) => {
8888 it ( 'should not save cache for pip' , async ( ) => {
8989 inputs [ 'cache' ] = 'pip' ;
90+ inputs [ 'python-version' ] = '3.10.0' ;
9091
9192 await run ( ) ;
9293
@@ -103,6 +104,7 @@ describe('run', () => {
103104
104105 it ( 'should not save cache for pipenv' , async ( ) => {
105106 inputs [ 'cache' ] = 'pipenv' ;
107+ inputs [ 'python-version' ] = '3.10.0' ;
106108
107109 await run ( ) ;
108110
@@ -121,6 +123,7 @@ describe('run', () => {
121123 describe ( 'action saves the cache' , ( ) => {
122124 it ( 'saves cache from pip' , async ( ) => {
123125 inputs [ 'cache' ] = 'pip' ;
126+ inputs [ 'python-version' ] = '3.10.0' ;
124127 getStateSpy . mockImplementation ( ( name : string ) => {
125128 if ( name === State . CACHE_MATCHED_KEY ) {
126129 return requirementsHash ;
@@ -147,6 +150,7 @@ describe('run', () => {
147150
148151 it ( 'saves cache from pipenv' , async ( ) => {
149152 inputs [ 'cache' ] = 'pipenv' ;
153+ inputs [ 'python-version' ] = '3.10.0' ;
150154 getStateSpy . mockImplementation ( ( name : string ) => {
151155 if ( name === State . CACHE_MATCHED_KEY ) {
152156 return pipFileLockHash ;
@@ -173,6 +177,7 @@ describe('run', () => {
173177
174178 it ( 'saves cache from poetry' , async ( ) => {
175179 inputs [ 'cache' ] = 'poetry' ;
180+ inputs [ 'python-version' ] = '3.10.0' ;
176181 getStateSpy . mockImplementation ( ( name : string ) => {
177182 if ( name === State . CACHE_MATCHED_KEY ) {
178183 return poetryLockHash ;
@@ -199,6 +204,7 @@ describe('run', () => {
199204
200205 it ( 'saves with -1 cacheId , should not fail workflow' , async ( ) => {
201206 inputs [ 'cache' ] = 'poetry' ;
207+ inputs [ 'python-version' ] = '3.10.0' ;
202208 getStateSpy . mockImplementation ( ( name : string ) => {
203209 if ( name === State . STATE_CACHE_PRIMARY_KEY ) {
204210 return poetryLockHash ;
@@ -227,6 +233,7 @@ describe('run', () => {
227233
228234 it ( 'saves with error from toolkit, should not fail the workflow' , async ( ) => {
229235 inputs [ 'cache' ] = 'npm' ;
236+ inputs [ 'python-version' ] = '3.10.0' ;
230237 getStateSpy . mockImplementation ( ( name : string ) => {
231238 if ( name === State . STATE_CACHE_PRIMARY_KEY ) {
232239 return poetryLockHash ;
0 commit comments