-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
28 lines (27 loc) · 987 Bytes
/
.gitlab-ci.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
image: python:3.9-slim
code-review:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
- if: '$CI_MERGE_REQUEST_EVENT_TYPE =~ /^(open|reopen|update)$/'
when: always
- if: '$CI_MERGE_REQUEST_EVENT_TYPE == "approved"'
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_comment"'
when: always
script:
# - export VERSION=5.rc-1
# - apt-get update
# - apt-get install curl -y
# - apt-get install zip unzip -y
# - curl -L https://github.com/utsmannn/corivai/archive/refs/tags/v${VERSION}.zip -o action_code.zip
# - unzip action_code.zip
# - cp -R corivai-${VERSION}/corivai .
# - cp corivai-${VERSION}/requirements.txt .
- pip install -r requirements.txt
- python -m corivai.main-gitlab
variables:
API_KEY: '$REVIEWER_API_KEY'
INPUT_OPENAI_URL: "https://generativelanguage.googleapis.com/v1beta/openai/"
INPUT_MAX_DIFF_SIZE: "500000"
INPUT_MODEL_NAME: "gemini-1.5-flash"