Skip to content

Commit

Permalink
fixed test workflow
Browse files Browse the repository at this point in the history
dorukgezici committed Oct 15, 2024
1 parent 970eb2b commit 1b7bf11
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend-build.yml
Original file line number Diff line number Diff line change
@@ -30,5 +30,5 @@ jobs:
with:
context: ./backend
push: true
tags: ${{ github.repository_owner }}/${{ env.PROJECT_NAME }}:${{ github.sha }}
tags: ${{ github.repository_owner }}/${{ env.PROJECT_NAME }}:latest,${{ github.repository_owner }}/${{ env.PROJECT_NAME }}:${{ github.sha }}
platforms: linux/arm64,linux/amd64
2 changes: 1 addition & 1 deletion backend/k8s-helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "latest"
2 changes: 1 addition & 1 deletion backend/subabot/rss/utils.py
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ def find_matches(
) -> Generator[tuple, Any, Any]:
"""Generates tuples of paths to the keyword found in the data."""

if isinstance(data, list) or isinstance(data, Sequence):
if isinstance(data, (list, Sequence)):
for index, item in enumerate(data):
path = pre_path + (str(index),)
yield from find_matches(item, keyword, path)
10 changes: 7 additions & 3 deletions backend/tests/test_crawler.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import asyncio

from sqlmodel import SQLModel, select

from subabot.db import Session, engine
from subabot.rss.crawler import crawl_feed, run_crawler
from subabot.rss.models import Feed, Keyword
from subabot.utils import now_timestamp
from subabot.db import Session, engine
from sqlmodel import select
import asyncio

SQLModel.metadata.create_all(engine)


def test_crawl_feed() -> None:

0 comments on commit 1b7bf11

Please sign in to comment.