test.sh
This file
Path
scripts/test.sh
11 lines · 436 bytes · Shell
Last changed by
🔧 Explicitly include testing files in sdist for redistributors (e.g. OpenSUSE) and add CI to test redistribution (#773)Sebastián Ramírezbefore adoption0cdc31e
History of this fileTake it
123456789101112#!/usr/bin/env bash
set -eset -x
# For tests, a large terminal widthexport TERMINAL_WIDTH=3000# Force disable terminal for tests inside of pytest, takes precedence over GITHUB_ACTIONS env varexport _TYPER_FORCE_DISABLE_TERMINAL=1# It seems xdist-pytest ensures modified sys.path to import relative modules in examples keeps workingpytest --cov --cov-report=term-missing -o console_output_style=progress --numprocesses=auto ${@}