-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
43 lines (35 loc) · 974 Bytes
/
ci.yaml
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
name: Tox pytest all python versions
on:
push:
branches: [ main ]
paths:
- gpt_engineer/**
- tests/**
pull_request:
branches: [ main ]
concurrency:
group: ${{github.workflow}} - ${{github.ref}}
cancel-in-progress: true
jobs:
test:
permissions: {}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' #Note that pip is for the tox level. Poetry is still used for installing the specific environments (tox.ini)
- name: Install tox
run: pip install tox==4.15.0
- name: Run tox
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: tox
- name: Report coverage
run: |
bash <(curl -s https://codecov.io/bash)