use actions if statment instead of bash

This commit is contained in:
Nick Sweeting 2020-12-11 21:44:21 +02:00
parent 35da16f203
commit 491cbe85f0

View file

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