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
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
13 changes: 0 additions & 13 deletions benchmarks/test_benchmark_chain_100.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@

import pytest
from cosy.maestro import Maestro
from luigi.mock import MockTarget

from cosy_luigi import CoSyLuigiRepo, CoSyLuigiTask, CoSyLuigiTaskParameter


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
Expand All @@ -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():
Expand Down
4 changes: 0 additions & 4 deletions src/cosy_luigi/core/combinatorics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading