forked from AutoCodeRoverSG/auto-code-rover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
33 lines (27 loc) · 867 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: 'AutoCodeRover'
description: 'Install AutoCodeRover dependencies.'
runs:
using: 'composite'
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Cache pip dependencies
id: cache-deps
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt', '${{ github.action_path }}') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install ACR dependencies
id: install-deps
run: |
pip install -r ${{ github.action_path }}/requirements.txt
echo "pip install ok"
echo "ACR_PATH=${{ github.action_path }}" >> $GITHUB_OUTPUT
shell: bash
outputs:
ACR_PATH:
description: "Path to AutoCodeRover source code directory."
value: ${{ steps.install-deps.outputs.ACR_PATH }}