Skip to content

Commit 5f8eb09

Browse files
authored
Refactor auto_answer.yml to streamline dependency installation
Updated the workflow to install dependencies using uv run with specified requirements files.
1 parent e046f87 commit 5f8eb09

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/auto_answer.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ jobs:
2222
with:
2323
enable-cache: true
2424

25-
- name: Install the project
26-
run: |
27-
uv run pip install -r requirements.txt
28-
uv run pip install -r KnowledgeBaseBot/requirements.txt
29-
3025
- name: Run the answer bot with uv run
3126
env:
3227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3328
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
3429
ISSUE_NUMBER: ${{ github.event.issue.number }}
3530
REPO_NAME: ${{ github.repository }}
36-
# This single step installs dependencies (if needed) and runs the script
37-
run: cd KnowledgeBaseBot && uv run python auto_answer_bot.py
31+
run: |
32+
cd KnowledgeBaseBot && \
33+
uv run \
34+
--with-requirements ../requirements.txt \
35+
--with-requirements requirements.txt \
36+
python auto_answer_bot.py

0 commit comments

Comments
 (0)