File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 22import shutil
33import subprocess
44import sys
5- import tempfile
65
76
87def main ():
98 what = os .environ .get ('DCS' , sys .argv [1 ] if len (sys .argv ) > 1 else 'all' )
9+ tmp = os .environ .get ('RUNNER_TEMP' )
1010
1111 if what == 'all' :
1212 flake8 = subprocess .call ([sys .executable , 'setup.py' , 'flake8' ])
1313 test = subprocess .call ([sys .executable , 'setup.py' , 'test' ])
1414 version = '.' .join (map (str , sys .version_info [:2 ]))
15- shutil .move ('.coverage' , os .path .join (tempfile . gettempdir () , '.coverage.' + version ))
15+ shutil .move ('.coverage' , os .path .join (tmp , '.coverage.' + version ))
1616 return flake8 | test
1717 elif what == 'combine' :
18- tmp = tempfile .gettempdir ()
1918 for name in os .listdir (tmp ):
2019 if name .startswith ('.coverage.' ):
2120 shutil .move (os .path .join (tmp , name ), name )
You can’t perform that action at this time.
0 commit comments