Skip to content

Commit 8b8b51b

Browse files
committed
Update: added cache files to gitignore
Signed-off-by: rafaeljohn9 <[email protected]>
1 parent 6ae0b48 commit 8b8b51b

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
pip install -r ask_web_youtube/requirements.txt
2626
pip install pytest
2727
28+
- name: Set environment variables from secrets
29+
run: |
30+
echo "YOUTUBE_DATA_API_KEY=${{ secrets.YOUTUBE_DATA_API_KEY }}" >> $GITHUB_ENV
31+
echo "SERPER_API_KEY=${{ secrets.SERPER_API_KEY }}" >> $GITHUB_ENV
32+
echo "GROQ_API_KEY=${{ secrets.GROQ_API_KEY }}" >> $GITHUB_ENV
33+
2834
- name: Run tests
2935
working-directory: ask_web_youtube
3036
run: make tests

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
.env
2+
__pycache__/
3+
*.pyc
4+
*.pyo
5+
.ruff_cache/
6+
ruff_cache/

ask_web_youtube/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ YOUTUBE_DATA_API_KEY=fake_key
33

44
# Src: https://serper.dev/api-key
55
SERPER_API_KEY=fake_key
6+
7+
# Src: https://console.groq.com/keys
8+
GROQ_API_KEY=fake_key

ask_web_youtube/agent/services/serper_search_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55

66
import httpx
7-
from typing import Any, Dict, Optional
7+
from typing import Optional
88
import os
99

1010
from utils.log_config import setup_logger

ask_web_youtube/tests/test_groq_handler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""Unit tests for the GroqHandler class.
2+
3+
This module tests the functionality of the GroqHandler
4+
without mocking, ensuring that credentials are working as expected.
5+
"""
6+
17
import pytest
28
from agent.services.llm_handler.groq_handler import GroqHandler
39
import os

0 commit comments

Comments
 (0)