-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (35 loc) · 1.3 KB
/
qodo.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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Qodo Suggest Tests
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest mypy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
pip install -e .
- name: Test with unittest
run: |
cd tests/
python -m unittest discover ./
- name: Suggest Tests with Qodo
uses: qodo-ai/qodo-ci/.github/actions/qodo-cover@v0.1.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_language: python
project_root: ./pedal/
code_coverage_report_path: ./coverage.xml
test_command: "coverage run -m unittest discover ./ && coverage xml -o coverage.xml"
model: gpt-4o
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}