From 5a00bd16f9ffe480f1698f1a3c89d034076f2267 Mon Sep 17 00:00:00 2001 From: Jo Bovy Date: Wed, 8 Jun 2022 00:20:48 -0400 Subject: [PATCH] Create data directory on Windows --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2371388..b5408db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,12 +26,20 @@ jobs: python -m pip install --upgrade pip wheel pip install numpy==${{ matrix.numpy-version }} pip install pyparsing==2.4.7 # For issue with six which requires pyparsing < 3 - pip install cython # for compiliong h5py from source + - name: Create data directory + if: runner.os == 'Windows' + env: + DUST_DIR: ${{github.workspace}}/data/ + run: New-Item -ItemType directory -Path $env:DUST_DIR + - name: Create data directory + if: runner.os != 'Windows' + env: + DUST_DIR: ${{github.workspace}}/data/ + run: mkdir $DUST_DIR - name: Test downloads env: DUST_DIR: ${{github.workspace}}/data/ run: | - mkdir $DUST_DIR python setup.py install --test-downloads --all-downloads - name: Install package run: |