File tree 2 files changed +22
-15
lines changed
2 files changed +22
-15
lines changed Original file line number Diff line number Diff line change 10
10
branches : [ main ]
11
11
12
12
concurrency :
13
- group : ${{github.workflow}} - ${{github.ref}}
13
+ group : ${{ github.workflow }} - ${{ github.ref }}
14
14
cancel-in-progress : true
15
15
16
16
jobs :
17
17
test :
18
- permissions : {}
19
18
runs-on : ubuntu-latest
20
19
strategy :
21
20
matrix :
22
21
python-version : ['3.10', '3.11', '3.12']
23
22
24
23
steps :
25
- - uses : actions/checkout@v3
24
+ - name : Checkout repository
25
+ uses : actions/checkout@v3
26
26
27
27
- name : Set up Python ${{ matrix.python-version }}
28
28
uses : actions/setup-python@v4
29
29
with :
30
- python-version : ${{ matrix.python-version }}
31
- cache : ' pip' # Note that pip is for the tox level. Poetry is still used for installing the specific environments (tox.ini)
30
+ python-version : ${{ matrix.python-version == '3.12' && '3.12.3' || matrix.python-version }} # Using 3.12.3 to resolve Pydantic ForwardRef issue
31
+ cache : ' pip' # Note that pip is for the tox level. Poetry is still used for installing the specific environments (tox.ini)
32
32
33
- - name : Install tox
34
- run : pip install tox==4.15.0
33
+ - name : Check Python Version
34
+ run : python --version
35
+
36
+ - name : Install dependencies
37
+ run : |
38
+ python -m pip install --upgrade pip
39
+ pip install tox==4.15.0 poetry
35
40
36
41
- name : Run tox
37
42
env :
38
43
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
39
44
run : tox
40
45
41
- - name : Report coverage
42
- run : |
43
- bash <(curl -s https://codecov.io/bash)
46
+ # Temporarily disabling codecov until we resolve codecov rate limiting issue
47
+ # - name: Report coverage
48
+ # run: |
49
+ # bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
envlist = py310, py311, py312
3
- isolated_build = True
4
3
5
4
[testenv]
5
+ basepython =
6
+ py310: python3.10
7
+ py311: python3.11
8
+ py312: python3.12
6
9
deps =
7
10
poetry
8
11
commands =
9
- poetry install
10
- poetry run pytest --cov =gpt_engineer --cov-report =xml -k " not installed_main_execution"
11
- passenv =
12
- OPENAI_API_KEY
12
+ poetry install --no-root
13
+ poetry run pytest --cov =gpt_engineer --cov-report =xml -k ' not installed_main_execution'
You can’t perform that action at this time.
0 commit comments