diff --git a/.gitignore b/.gitignore index caa65389..1e61de30 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ coverage.xml .vscode stuntidp* .npm/ +functest-results/ diff --git a/Taskfile.yml b/Taskfile.yml index 0878af39..2710c068 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -67,7 +67,7 @@ tasks: - ./scripts/builder.sh black archivist examples functests unittests type-check: - desc: Runs the pyright type checker against the core archivst files + desc: Runs the pyright type checker against the core archivst files deps: [about] cmds: - ./scripts/builder.sh pyright archivist @@ -78,6 +78,12 @@ tasks: cmds: - ./scripts/builder.sh ./scripts/functests.sh + pipeline-functests: + desc: Run functests with Junit xml output + deps: [about] + cmds: + - ./scripts/builder.sh ./scripts/pipeline_functests.sh + notebooks: desc: Run jupyter notebooks deps: [about] diff --git a/pyproject.toml b/pyproject.toml index 04502767..23b3f8dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ count_commits_from_version_file = false [tool.pyright] include = ["archivist"] +typeCheckingMode = "basic" [tool.pylint.main] # Analyse import fallback blocks. This can be used to support both Python 2 and 3 diff --git a/requirements-dev.txt b/requirements-dev.txt index 2ea0bd3b..68ff338f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,6 +8,7 @@ pip-audit~=2.4 pycodestyle~=2.9 pylint~=2.14 pyright~=1.1.271 +unittest-xml-reporting~=3.2.0 # uploading to pypi build~=0.8 diff --git a/scripts/pipeline_functests.sh b/scripts/pipeline_functests.sh new file mode 100755 index 00000000..0b66ead3 --- /dev/null +++ b/scripts/pipeline_functests.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# +# run functests with xml reporting + +rm -rf functest-results +mkdir -p functest-results +export PYTHONWARNINGS="ignore:Unverified HTTPS request" +python -m xmlrunner discover -v -p exec*.py -s functests -o ./functest-results/ \ No newline at end of file