🔧 Tweak pytest coverage (#485)
This commit is contained in:
parent
8a1ecac2c0
commit
f55e62e7bb
2 changed files with 7 additions and 2 deletions
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -25,6 +25,11 @@ jobs:
|
|||
- name: Install Flit
|
||||
run: pip install flit
|
||||
- name: Install Dependencies
|
||||
if: ${{ matrix.python-version != '3.6' }}
|
||||
run: python -m flit install --symlink
|
||||
- name: Install Dependencies
|
||||
if: ${{ matrix.python-version == '3.6' }}
|
||||
# This doesn't install the editable install, so coverage doesn't get subprocesses
|
||||
run: python -m pip install ".[test]"
|
||||
- name: Install Click 7
|
||||
if: matrix.click-7
|
||||
|
|
|
@ -8,5 +8,5 @@ export TERMINAL_WIDTH=3000
|
|||
# Force disable terminal for tests inside of pytest, takes precedence over GITHUB_ACTIONS env var
|
||||
export _TYPER_FORCE_DISABLE_TERMINAL=1
|
||||
bash ./scripts/test-files.sh
|
||||
# Use xdist-pytest --forked to ensure modified sys.path to import relative modules in examples keeps working
|
||||
pytest --cov=typer --cov=tests --cov=docs_src --cov-report=term-missing -o console_output_style=progress --numprocesses=auto ${@}
|
||||
# It seems xdist-pytest ensures modified sys.path to import relative modules in examples keeps working
|
||||
pytest --cov-config=.coveragerc --cov --cov-report=term-missing -o console_output_style=progress --numprocesses=auto ${@}
|
||||
|
|
Loading…
Reference in a new issue