Skip to content
Myr

test.sh

This file

Path

scripts/test.sh

13 lines · 526 bytes · Shell

Last changed by

✅ Only run completion installation tests when the env var `_TYPER_RUN_INSTALL_COMPLETION_TESTS` is set (#995)Sofie Van Landeghembefore adoption9f9047d

History of this file

Take it

The walk stopped after 200 commits: lines older than 14bab0a point at it.

👷 Update `latest-changes` GitHub Action (#955)Sebastián Ramírezbefore adoption14bab0a

lines 1–9why, one step back
1#!/usr/bin/env bash
23set -e4set -x56# For tests, a large terminal width7export TERMINAL_WIDTH=30008# Force disable terminal for tests inside of pytest, takes precedence over GITHUB_ACTIONS env var9export _TYPER_FORCE_DISABLE_TERMINAL=1

✅ Only run completion installation tests when the env var `_TYPER_RUN_INSTALL_COMPLETION_TESTS` is set (#995)Sofie Van Landeghembefore adoption9f9047d

lines 10–11why, one step back
10# Run autocompletion install tests in the CI
11export _TYPER_RUN_INSTALL_COMPLETION_TESTS=1

👷 Update `latest-changes` GitHub Action (#955)Sebastián Ramírezbefore adoption14bab0a

lines 12–13why, one step back
12# It seems xdist-pytest ensures modified sys.path to import relative modules in examples keeps working
13pytest --cov --cov-report=term-missing -o console_output_style=progress --numprocesses=auto ${@}