Skip to content

Commit

Permalink
fix: test runs when there are no example jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Apr 20, 2024
1 parent 17261e7 commit bb3d976
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ dev/
temp/
# pixi environments
.pixi

pixi.lock
28 changes: 15 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,6 @@ all_plugins = [
"kiara_plugin.core_types",
"kiara_plugin.tabular",
"kiara_plugin.onboarding",
"kiara_plugin.network_analysis",
"kiara_plugin.language_processing",
"kiara_plugin.html",
"kiara_plugin.jupyter",
"kiara_plugin.streamlit",
]

dev_documentation = [
Expand All @@ -236,7 +231,6 @@ dev_documentation = [

dev_testing = [
"pytest-cov>=4.1.0",
"flake8>=3.8.4",
"jsonschema>=4.0.0",
"mypy>=0.800",
"pandas-stubs",
Expand All @@ -257,19 +251,15 @@ dev_testing = [
"types-humanfriendly",
"types-setuptools",
"sqlalchemy-stubs"

]

dev_utils = [
"kiara_plugin.core_types",
"kiara_plugin.tabular",
"kiara_plugin.develop",
"build",
"flake8>=3.8.4",
"ipython",
"mypy>=0.800",
"pandas-stubs",
"pip-licenses>=3.3.0",
"pre-commit>=2.9.3",
"pytest>=6.2.2",
"pytest-xdist>=3.2.1",
Expand All @@ -288,7 +278,6 @@ dev_utils = [
"types-humanfriendly",
"types-setuptools",
"sqlalchemy-stubs",
"watchgod>=0.6",
"wheel"
]

Expand Down Expand Up @@ -533,9 +522,22 @@ executionEnvironments = [
]

[tool.pixi.project]
name = "kiara"
channels = ["dharpa", "conda-forge"]
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]

[tool.pixi.pypi-dependencies]
kiara = { path = ".", editable = true}
kiara = { path = ".", editable = true }

[tool.pixi.environments]
default = { solve-group = "default" }
#dev = { features = ["dev_utils"], solve-group = "default" }


[tool.pixi.tasks]
pre-commit-check = "pre-commit run --all-files"
tests = "py.test"
mypy = "mypy --namespace-packages --explicit-package-base src/kiara_plugin/{{ cookiecutter.project_slug }}"
kiara = "kiara"
show-versions = "kiara --version"
delete-context = "kiara context delete"
install-dev-dependencies = "pip install --upgrade -e '.[dev_utils]'"
2 changes: 1 addition & 1 deletion src/kiara/interfaces/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def run(
pipeline_dir = os.path.abspath(os.path.dirname(path))
execution_context = ExecutionContext(pipeline_dir=pipeline_dir)
pc = PipelineConfig.from_config(
data, execution_context=execution_context
data, execution_context=execution_context, kiara=api.context
)
job_desc = JobDesc(
operation="pipeline",
Expand Down

0 comments on commit bb3d976

Please sign in to comment.