Skip to content

Commit

Permalink
ci: always run required checks (langflow-ai#2395)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Jul 1, 2024
1 parent ce92114 commit c493d81
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/lint-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: Lint Python
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "poetry.lock"
- "pyproject.toml"
- "src/backend/**"
- "tests/**"
merge_group:
types: [checks_requested]
env:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:
pull_request:
types: [opened, synchronize, reopened]
branches: [dev, main]
paths:
- "poetry.lock"
- "pyproject.toml"
- "src/backend/**"
merge_group:
types: [checks_requested]
env:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/style-check-py.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Ruff Style Check

on:
pull_request:
paths:
- "poetry.lock"
- "pyproject.toml"
- "src/backend/**"
- "tests/**"
pull_request: {}
merge_group:
branches: [dev]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ def _build_cassandra(self) -> Cassandra:
cluster_kwargs=self.cluster_kwargs,
)

if not self.ttl_seconds:
self.ttl_seconds = None

documents = []

for _input in self.ingest_data or []:
Expand All @@ -190,7 +187,7 @@ def _build_cassandra(self) -> Cassandra:
embedding=self.embedding,
table_name=self.table_name,
keyspace=self.keyspace,
ttl_seconds=self.ttl_seconds,
ttl_seconds=self.ttl_seconds or None,
batch_size=self.batch_size,
body_index_options=body_index_options,
)
Expand All @@ -200,7 +197,7 @@ def _build_cassandra(self) -> Cassandra:
embedding=self.embedding,
table_name=self.table_name,
keyspace=self.keyspace,
ttl_seconds=self.ttl_seconds,
ttl_seconds=self.ttl_seconds or None,
body_index_options=body_index_options,
setup_mode=self.setup_mode,
)
Expand Down

0 comments on commit c493d81

Please sign in to comment.