diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index cc23fa3..fe71edc 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -72,7 +72,7 @@ jobs: git config user.email "269699678+cls-python-workflows[bot]@users.noreply.github.com" - name: Determine Push Or Not - if: github.event_name != 'pull_request' + if: github.event_name == 'push' run: | echo "PUSH_TO_BENCHMARKS=true" >> $GITHUB_ENV diff --git a/benchmarks/test_benchmark_chain_100.py b/benchmarks/test_benchmark_chain_100.py index 013666c..0359f29 100644 --- a/benchmarks/test_benchmark_chain_100.py +++ b/benchmarks/test_benchmark_chain_100.py @@ -2,7 +2,6 @@ import pytest from cosy.maestro import Maestro -from luigi.mock import MockTarget from cosy_luigi import CoSyLuigiRepo, CoSyLuigiTask, CoSyLuigiTaskParameter @@ -10,12 +9,6 @@ class ChainLink(CoSyLuigiTask, ABC): chain_link: CoSyLuigiTaskParameter | None - def output(self): - return MockTarget("ChainLink") - - def run(self): - self.output().open("w").write("Ok.") - class StartingLink(ChainLink): chain_link = None @@ -28,12 +21,6 @@ class RepeatingLink(ChainLink): class FinalLink(CoSyLuigiTask): chain_link = CoSyLuigiTaskParameter(ChainLink) - def output(self): - return MockTarget("FinalLink") - - def run(self): - self.output().open("w").write("Ok.") - @pytest.fixture def repo(): diff --git a/src/cosy_luigi/core/combinatorics.py b/src/cosy_luigi/core/combinatorics.py index fb09bd7..69b5e8f 100644 --- a/src/cosy_luigi/core/combinatorics.py +++ b/src/cosy_luigi/core/combinatorics.py @@ -26,10 +26,6 @@ def __init__(self, required_task: type[CoSyLuigiTask], *, unique_across_prior_ta class CoSyLuigiTask(luigi.Task): - def __init_subclass__(cls, **kwargs): - super().__init_subclass__(**kwargs) - cls.self = cls - @classmethod @cache def get_all_variants(cls):