add skip on windows
{% set version = "0.5.0" %}
+{% set pytest_args = "python -m pytest -vv --cov=pyproject_fmt --cov-branch --cov-report=term-missing:skip-covered --no-cov-on-fail" %}
package:
name: pyproject-fmt
@@ -35,7 +36,9 @@ test:
commands:
- pip check
- pyproject-fmt --help
- - python -m pytest -vv --cov=pyproject_fmt --cov-branch --cov-report=term-missing:skip-covered --no-cov-on-fail --cov-fail-under=99
+ - {{ pytest_args }} --cov-fail-under=99 # [not win]
+ # fails with `FileNotFoundError``
+ - {{ pytest_args }} -k "not test_help_invocation_as_script" # [win]
requires:
- pip
- pytest >=7.2
