-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.33 KB
/
qodo-cover.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
34
35
36
37
38
39
40
41
42
43
44
45
name: Run the qodo-cover action
on:
pull_request:
branches:
- main
types:
- opened # Trigger only when a pull request is opened
permissions:
pull-requests: write # Allows commenting on pull requests
contents: write # Allows reading and writing files
jobs:
run-qodo-cover:
runs-on: ubuntu-22.04
steps:
- name: Checkout PR branch
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3 python3-dev python3-pip
python3 --version
- name: Install app dependencies
run: |
python -m pip install --upgrade pip
pip install -r templated_tests/python_fastapi/requirements.txt
- name: Qodo Cover
uses: qodo-ai/qodo-cover/.github/actions/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_language: python
project_root: templated_tests/python_fastapi
code_coverage_report_path: templated_tests/python_fastapi/coverage.xml
test_command: "pytest --cov=. --cov-report=xml --cov-report=term"
model: gpt-4o
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}