diff --git a/.github/workflows/build-test-deploy.yml b/.github/workflows/build-test-deploy.yml index 7337aca..6ccc166 100644 --- a/.github/workflows/build-test-deploy.yml +++ b/.github/workflows/build-test-deploy.yml @@ -1,7 +1,12 @@ on: push: + branches: + - main + - maint/* pull_request: - branches: [main] + branches: + - main + - maint/* release: types: - published diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..b586953 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,12 @@ +coverage: + status: + project: + default: + target: 80% + patch: + default: + target: 80% + +comment: + layout: "condensed_header, diff, flags, components" + require_changes: true diff --git a/pyproject.toml b/pyproject.toml index 90d1a39..26eb474 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,18 +62,18 @@ parentdir_prefix = "" [tool.pytest.ini_options] minversion = "6" -testpaths = ["tests"] +testpaths = ["src", "tests"] log_level = "INFO" xfail_strict = true addopts = ["-ra", "--strict-config", "--strict-markers"] -filterwarnings = ["error"] +filterwarnings = ["error", "ignore::pytest.PytestUnraisableExceptionWarning", "ignore::SyntaxWarning:datalad*"] norecursedirs = ["data"] doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"] [tool.coverage.run] branch = true parallel = true -source = ["bids_validator", "tests"] +source = ["src", "tests"] omit = [ "setup.py", "*/_version.py", diff --git a/tox.ini b/tox.ini index 9dcdad2..639b7a9 100644 --- a/tox.ini +++ b/tox.ini @@ -60,6 +60,8 @@ deps = pre: git+https://github.com/bids-standard/bids-specification.git\#subdirectory=tools/schemacode commands = + # Avoid SyntaxWarning being promoted to SyntaxError in Python 3.14, Datalad up to 1.3.2. + python -c 'import datalad' coverage erase coverage run -p -m bids_validator tests/data/bids-examples/ds000117 python -m pytest --doctest-modules --cov . --cov-append --cov-report term \