|
22 | 22 | CACHED_BUILD_PATHS: | |
23 | 23 | ${{ github.workspace }}/dist-serverless |
24 | 24 | jobs: |
25 | | - test-ai-latest: |
26 | | - name: AI (latest) |
27 | | - timeout-minutes: 30 |
28 | | - runs-on: ${{ matrix.os }} |
29 | | - strategy: |
30 | | - fail-fast: false |
31 | | - matrix: |
32 | | - python-version: ["3.9","3.11","3.12"] |
33 | | - # python3.6 reached EOL and is no longer being supported on |
34 | | - # new versions of hosted runners on Github Actions |
35 | | - # ubuntu-20.04 is the last version that supported python3.6 |
36 | | - # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877 |
37 | | - os: [ubuntu-22.04] |
38 | | - # Use Docker container only for Python 3.6 |
39 | | - container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }} |
40 | | - steps: |
41 | | - |
42 | | - - uses: actions/setup-python@v5 |
43 | | - if: ${{ matrix.python-version != '3.6' }} |
44 | | - with: |
45 | | - python-version: ${{ matrix.python-version }} |
46 | | - allow-prereleases: true |
47 | | - - name: Setup Test Env |
48 | | - run: | |
49 | | - pip install "coverage[toml]" tox |
50 | | - - name: Erase coverage |
51 | | - run: | |
52 | | - coverage erase |
53 | | - - name: Test anthropic latest |
54 | | - run: | |
55 | | - set -x # print commands that are executed |
56 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic-latest" |
57 | | - - name: Test cohere latest |
58 | | - run: | |
59 | | - set -x # print commands that are executed |
60 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-cohere-latest" |
61 | | - - name: Test langchain latest |
62 | | - run: | |
63 | | - set -x # print commands that are executed |
64 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-latest" |
65 | | - - name: Test openai latest |
66 | | - run: | |
67 | | - set -x # print commands that are executed |
68 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest" |
69 | | - - name: Test openai_agents latest |
70 | | - run: | |
71 | | - set -x # print commands that are executed |
72 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-openai_agents-latest" |
73 | | - - name: Test huggingface_hub latest |
74 | | - run: | |
75 | | - set -x # print commands that are executed |
76 | | - ./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub-latest" |
77 | | - - name: Generate coverage XML (Python 3.6) |
78 | | - if: ${{ !cancelled() && matrix.python-version == '3.6' }} |
79 | | - run: | |
80 | | - export COVERAGE_RCFILE=.coveragerc36 |
81 | | - coverage combine .coverage-sentry-* |
82 | | - coverage xml --ignore-errors |
83 | | - - name: Generate coverage XML |
84 | | - if: ${{ !cancelled() && matrix.python-version != '3.6' }} |
85 | | - run: | |
86 | | - coverage combine .coverage-sentry-* |
87 | | - coverage xml |
88 | | - - name: Upload coverage to Codecov |
89 | | - if: ${{ !cancelled() }} |
90 | | - |
91 | | - with: |
92 | | - token: ${{ secrets.CODECOV_TOKEN }} |
93 | | - files: coverage.xml |
94 | | - # make sure no plugins alter our coverage reports |
95 | | - plugins: noop |
96 | | - verbose: true |
97 | | - - name: Upload test results to Codecov |
98 | | - if: ${{ !cancelled() }} |
99 | | - uses: codecov/test-results-action@v1 |
100 | | - with: |
101 | | - token: ${{ secrets.CODECOV_TOKEN }} |
102 | | - files: .junitxml |
103 | | - verbose: true |
104 | 25 | test-ai-pinned: |
105 | 26 | name: AI (pinned) |
106 | 27 | timeout-minutes: 30 |
@@ -137,14 +58,22 @@ jobs: |
137 | 58 | run: | |
138 | 59 | set -x # print commands that are executed |
139 | 60 | ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cohere" |
140 | | - - name: Test langchain pinned |
| 61 | + - name: Test langchain-base pinned |
| 62 | + run: | |
| 63 | + set -x # print commands that are executed |
| 64 | + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain-base" |
| 65 | + - name: Test langchain-notiktoken pinned |
| 66 | + run: | |
| 67 | + set -x # print commands that are executed |
| 68 | + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain-notiktoken" |
| 69 | + - name: Test openai-base pinned |
141 | 70 | run: | |
142 | 71 | set -x # print commands that are executed |
143 | | - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain" |
144 | | - - name: Test openai pinned |
| 72 | + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai-base" |
| 73 | + - name: Test openai-notiktoken pinned |
145 | 74 | run: | |
146 | 75 | set -x # print commands that are executed |
147 | | - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai" |
| 76 | + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai-notiktoken" |
148 | 77 | - name: Test openai_agents pinned |
149 | 78 | run: | |
150 | 79 | set -x # print commands that are executed |
|
0 commit comments