diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 040c8f2..349ccfe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -98,20 +98,25 @@ jobs: test-windows: name: test-windows runs-on: windows-latest + defaults: + run: + shell: bash steps: - name: Checkout code uses: actions/checkout@v2 - name: Install calibre and wget - run: choco install calibre wget + run: | + choco install calibre wget + echo "/C/Program Files/Calibre2" >> $GITHUB_PATH - name: Download 1984 ebook run: wget https://www.planetebook.com/free-ebooks/1984.mobi - name: Add 1984 to library run: | - mkdir "~/Calibre Library" - calibredb add 1984.mobi --with-library "~/Calibre Library" + mkdir ~/Calibre\ Library + calibredb add 1984.mobi --with-library ~/Calibre\ Library rm 1984.mobi - name: Build plugin @@ -134,4 +139,4 @@ jobs: - name: Run test run: | cd tests - calibre-debug test.py \ No newline at end of file + calibre-debug test.py