Skip to content

Commit

Permalink
testing change
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Dec 27, 2023
1 parent 52984a2 commit 86725fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
strategy:
matrix:
python-version: ['3.8', '3.10']
os: ['ubuntu-latest', 'windows-latest']
#os: ['ubuntu-latest', 'windows-latest']
os: ['windows-latest']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down
10 changes: 6 additions & 4 deletions py/minimint/mist_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,14 @@ def writer(url, pref):
fdout.write(fd.read())
fdout.close()
fd.close()
cmd = f'cd {pref}; tar xfJ {fname_out}'
if os.name == 'nt':
fname_out1 = fname_out.replace('.xz', '')
cmd = f'cd {pref} && 7z x {fname_out} && tar -xf {fname_out1}'

ret = subprocess.run(cmd, capture_output=True, shell=True, timeout=60)
cmd = f'cd {pref} && 7z x {fname_out} && tar -xf {fname_out1}'
else:
cmd = f'cd {pref}; tar xfJ {fname_out}'

#ret = subprocess.run(cmd, capture_output=True, shell=True, timeout=60)
ret = subprocess.run(cmd, shell=True, timeout=60)
if ret.returncode != 0:
raise RuntimeError('Failed to untar the files' +
ret.stdout.decode() + ret.stderr.decode())
Expand Down

0 comments on commit 86725fe

Please sign in to comment.