Skip to content

Commit f5d57ab

Browse files
author
Andrei Bratu
committed
Updated Python version in actions
1 parent 4ae569d commit f5d57ab

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Set up python
1111
uses: actions/setup-python@v4
1212
with:
13-
python-version: 3.8
13+
python-version: 3.12
1414
- name: Bootstrap poetry
1515
run: |
1616
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up python
2727
uses: actions/setup-python@v4
2828
with:
29-
python-version: 3.8
29+
python-version: 3.9
3030
- name: Bootstrap poetry
3131
run: |
3232
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
@@ -35,6 +35,38 @@ jobs:
3535

3636
- name: Test
3737
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
56+
- name: Bootstrap poetry
57+
run: |
58+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
59+
- name: Install dependencies
60+
run: poetry install
61+
62+
- name: Test
63+
run: poetry run pytest -rP .
64+
env:
65+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
66+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
67+
REPLICATE_API_KEY: ${{ secrets.REPLICATE_API_KEY }}
68+
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
69+
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
3870

3971
publish:
4072
needs: [compile, test]
@@ -46,7 +78,7 @@ jobs:
4678
- name: Set up python
4779
uses: actions/setup-python@v4
4880
with:
49-
python-version: 3.8
81+
python-version: 3.9
5082
- name: Bootstrap poetry
5183
run: |
5284
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1

0 commit comments

Comments
 (0)