From ce42258b8d56e74746c52a959cf925efc281ff1d Mon Sep 17 00:00:00 2001 From: Rick Nitsche Date: Fri, 11 Dec 2020 10:43:21 -0800 Subject: [PATCH] debug ci --- .github/workflows/main.yml | 3 ++- caput/pipeline.py | 2 +- caput/tests/test_lint.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f44e23ed..e8851784 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,8 @@ jobs: pip install -r requirements.txt pip install mpi4py pip install pytest - python setup.py develop + python setup.py build_ext --inplace + python setup.py install - name: Run serial tests run: pytest --doctest-modules caput/ diff --git a/caput/pipeline.py b/caput/pipeline.py index 54e382b7..73756b57 100644 --- a/caput/pipeline.py +++ b/caput/pipeline.py @@ -749,7 +749,7 @@ def add_task(self, task, requires=None, in_=None, out=None): out_keys = [t._out_keys for t in self.tasks if t != task] out_keys = [item for sublist in out_keys for item in sublist] - if isinstance(value, str): + if not isinstance(value, list): value = [value] for v in value: if v not in out_keys: diff --git a/caput/tests/test_lint.py b/caput/tests/test_lint.py index 98da7e95..0dc939fe 100644 --- a/caput/tests/test_lint.py +++ b/caput/tests/test_lint.py @@ -71,6 +71,7 @@ def test_unknown_task(simple_config): simple_config["pipeline"]["tasks"][0]["type"] = "what.was.the.name.of.my.Task" config_file = write_to_file(simple_config) result = test_runner.invoke(caput_script.lint_config, [config_file]) + print(result.output) assert result.exit_code != 0