| 1 | name: 'AutoCodeRover' |
| 2 | description: 'Install AutoCodeRover dependencies.' |
| 3 | |
| 4 | runs: |
| 5 | |
| 6 | using: 'composite' |
| 7 | |
| 8 | steps: |
| 9 | |
| 10 | - uses: actions/setup-python@v5 |
| 11 | with: |
| 12 | python-version: '3.11' |
| 13 | |
| 14 | - name: Cache pip dependencies |
| 15 | id: cache-deps |
| 16 | uses: actions/cache@v3 |
| 17 | with: |
| 18 | path: ~/.cache/pip |
| 19 | key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt', '${{ github.action_path }}') }} |
| 20 | restore-keys: | |
| 21 | ${{ runner.os }}-pip- |
| 22 | - name: Install ACR dependencies |
| 23 | id: install-deps |
| 24 | run: | |
| 25 | pip install -r ${{ github.action_path }}/requirements.txt |
| 26 | echo "pip install ok" |
| 27 | echo "ACR_PATH=${{ github.action_path }}" >> $GITHUB_OUTPUT |
| 28 | shell: bash |
| 29 | |
| 30 | outputs: |
| 31 | ACR_PATH: |
| 32 | description: "Path to AutoCodeRover source code directory." |
| 33 | value: ${{ steps.install-deps.outputs.ACR_PATH }} |