|
10 | 10 | - name: Set up python |
11 | 11 | uses: actions/setup-python@v4 |
12 | 12 | with: |
13 | | - python-version: 3.8 |
| 13 | + python-version: 3.12 |
14 | 14 | - name: Bootstrap poetry |
15 | 15 | run: | |
16 | 16 | curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 |
|
26 | 26 | - name: Set up python |
27 | 27 | uses: actions/setup-python@v4 |
28 | 28 | with: |
29 | | - python-version: 3.8 |
| 29 | + python-version: 3.9 |
30 | 30 | - name: Bootstrap poetry |
31 | 31 | run: | |
32 | 32 | curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 |
|
35 | 35 |
|
36 | 36 | - name: Test |
37 | 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 |
| 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 }} |
38 | 70 |
|
39 | 71 | publish: |
40 | 72 | needs: [compile, test] |
|
46 | 78 | - name: Set up python |
47 | 79 | uses: actions/setup-python@v4 |
48 | 80 | with: |
49 | | - python-version: 3.8 |
| 81 | + python-version: 3.9 |
50 | 82 | - name: Bootstrap poetry |
51 | 83 | run: | |
52 | 84 | curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 |
|
0 commit comments