Explorar el Código

use actions if statment instead of bash

Nick Sweeting hace 5 años
padre
commit
491cbe85f0
Se han modificado 1 ficheros con 3 adiciones y 8 borrados
  1. 3 8
      .github/workflows/test.yml

+ 3 - 8
.github/workflows/test.yml

@@ -87,15 +87,10 @@ jobs:
           archivebox version
 
       - name: Test built package with pytest
-        env:
-          OS: ${{ matrix.os }}
+        # TODO: remove this exception for windows once we get tests passing on that platform
+        if: !contains(matrix.os, 'windows')
         run: |
-          # TODO: remove this exception for windows once we get tests passing on that platform
-          if [[ "$OS" == "windows-latest" ]]; then
-            echo "Skipping tests on Windows"
-          else
-            python -m pytest -s
-          fi
+          python -m pytest -s
 
   docker_tests:
     runs-on: ubuntu-latest