Skip to content

Commit 5873ff2

Browse files
author
Nejc
authored
Merge pull request #13 from nejcm/develop
revert: back to pip
2 parents 04e2f46 + f83b77c commit 5873ff2

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

action.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,21 @@ runs:
8888
fi
8989
git log origin/${{ github.event.pull_request.base.ref }}..${{ github.event.pull_request.head.sha }} --pretty=format:"%s" > commit_messages.txt
9090
91-
- name: 💿 Install uv
92-
uses: astral-sh/setup-uv@v5
93-
with:
94-
version: "0.6.2"
95-
enable-cache: true
96-
cache-dependency-glob: "**/uv.lock"
97-
98-
- name: 📁 Working directory
99-
run: cd ${{github.action_path}}
100-
shell: bash
101-
10291
- name: 💿 Install python
10392
uses: actions/setup-python@v5
10493
with:
105-
python-version-file: "pyproject.toml"
94+
python-version-file: "${{ github.action_path }}/pyproject.toml"
10695

10796
- name: 🦺 Install python packages
10897
shell: bash
109-
run: uv sync --all-extras --dev
98+
run: |
99+
python -m pip install --upgrade pip
100+
if [ -f "${{ github.action_path }}/pyproject.toml" ]; then
101+
pip install ${{ github.action_path }}
102+
else
103+
echo "pyproject.toml not found, installing dependencies directly"
104+
pip install 'requests==2.32.3' 'anthropic==0.40.0' 'openai==1.55.3' 'nltk==3.9.1' 'markdown-it-py==3.0.0' 'google-genai==1.2.0'
105+
fi
110106
111107
- name: 🤖 Run
112108
id: summary
@@ -119,7 +115,7 @@ runs:
119115
if [ ! -z "${{ inputs.file }}" ] && [ -f "${{ inputs.file }}" ]; then
120116
export DATA=$(cat "${{ inputs.file }}")
121117
fi
122-
uv run src/main.py
118+
python ${{ github.action_path }}/src/main.py
123119
shell: bash
124120
env:
125121
OPENAI_KEY: ${{ inputs.openAiKey }}

0 commit comments

Comments
 (0)