Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
on:
push:
branches:
- main
- maint/*
pull_request:
branches: [main]
branches:
- main
- maint/*
release:
types:
- published
Expand Down
12 changes: 12 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
coverage:
status:
project:
default:
target: 80%
patch:
default:
target: 80%

comment:
layout: "condensed_header, diff, flags, components"
require_changes: true
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
Loading