@@ -4,13 +4,16 @@ on: [push]
44jobs :
55 compile :
66 runs-on : ubuntu-20.04
7+ strategy :
8+ matrix :
9+ python-version : [3.9, 3.10, 3.11, 3.12, 3.13]
710 steps :
811 - name : Checkout repo
912 uses : actions/checkout@v3
1013 - name : Set up python
1114 uses : actions/setup-python@v4
1215 with :
13- python-version : 3.12
16+ python-version : ${{ matrix.python-version }}
1417 - name : Bootstrap poetry
1518 run : |
1619 curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
@@ -20,39 +23,16 @@ jobs:
2023 run : poetry run mypy .
2124 test :
2225 runs-on : ubuntu-20.04
26+ strategy :
27+ matrix :
28+ python-version : [3.9, 3.10, 3.11, 3.12, 3.13]
2329 steps :
2430 - name : Checkout repo
2531 uses : actions/checkout@v3
2632 - name : Set up python
2733 uses : actions/setup-python@v4
2834 with :
29- python-version : 3.9
30- - name : Bootstrap poetry
31- run : |
32- curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
33- - name : Install dependencies
34- run : poetry install
35-
36- - name : Test
37- run : poetry run pytest -rP .
38- env :
39- OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
40- ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY }}
41- REPLICATE_API_KEY : ${{ secrets.REPLICATE_API_KEY }}
42- GROQ_API_KEY : ${{ secrets.GROQ_API_KEY }}
43- COHERE_API_KEY : ${{ secrets.COHERE_API_KEY }}
44- test_3_12 :
45- # Run the test suite with Python 3.12 too
46- # Some tool decorator tests assert the ability to parse the signature
47- # of functions that use typing features introduced in Python 3.10 e.g. '|'
48- runs-on : ubuntu-20.04
49- steps :
50- - name : Checkout repo
51- uses : actions/checkout@v3
52- - name : Set up python
53- uses : actions/setup-python@v4
54- with :
55- python-version : 3.12
35+ python-version : ${{ matrix.python-version }}
5636 - name : Bootstrap poetry
5737 run : |
5838 curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
6949 COHERE_API_KEY : ${{ secrets.COHERE_API_KEY }}
7050
7151 publish :
72- needs : [compile, test, test_3_12 ]
52+ needs : [compile, test]
7353 if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
7454 runs-on : ubuntu-20.04
7555 steps :
0 commit comments