test
This file
Path
scripts/test
28 lines · 493 bytes
Last changed by
Enforce coverage (#955)Tom Christiebefore adoption0a8b0c6
History of this fileTake it
1#!/bin/sh23export PREFIX=""4if [ -d 'venv' ] ; then5 export PREFIX="venv/bin/"6fi78if [ -z $GITHUB_ACTIONS ]; then9 set +e10 scripts/check11 while [ $? -ne 0 ]; do12 read -p "Running 'scripts/check' failed. Do you want to run 'scripts/lint' now? [y/N] " yn13 case $yn in14 [Yy]* ) :;;15 * ) exit;;16 esac17 scripts/lint18 scripts/check19 done20fi2122set -ex2324${PREFIX}pytest $@2526if [ -z $GITHUB_ACTIONS ]; then27 scripts/coverage28fi