|
10 | 10 | - name: Set up python |
11 | 11 | uses: actions/setup-python@v4 |
12 | 12 | with: |
13 | | - python-version: 3.12 |
| 13 | + python-version: 3.8 |
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.9 |
| 29 | + python-version: 3.8 |
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 }} |
70 | 38 |
|
71 | 39 | publish: |
72 | | - needs: [compile, test, test_3_12] |
| 40 | + needs: [compile, test] |
73 | 41 | if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') |
74 | 42 | runs-on: ubuntu-20.04 |
75 | 43 | steps: |
|
78 | 46 | - name: Set up python |
79 | 47 | uses: actions/setup-python@v4 |
80 | 48 | with: |
81 | | - python-version: 3.9 |
| 49 | + python-version: 3.8 |
82 | 50 | - name: Bootstrap poetry |
83 | 51 | run: | |
84 | 52 | curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 |
|
0 commit comments