2222 CACHED_BUILD_PATHS : |
2323 ${{ github.workspace }}/dist-serverless
2424jobs :
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
10425 test-ai-pinned :
10526 name : AI (pinned)
10627 timeout-minutes : 30
11738 # Use Docker container only for Python 3.6
11839 container : ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
11940 steps :
120- - uses : actions/checkout@v4.2.2
41+ - uses : actions/checkout@v5.0.0
12142 - uses : actions/setup-python@v5
12243 if : ${{ matrix.python-version != '3.6' }}
12344 with :
@@ -137,14 +58,22 @@ jobs:
13758 run : |
13859 set -x # print commands that are executed
13960 ./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
14170 run : |
14271 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
14574 run : |
14675 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 "
14877 - name : Test openai_agents pinned
14978 run : |
15079 set -x # print commands that are executed
16695 coverage xml
16796 - name : Upload coverage to Codecov
16897 if : ${{ !cancelled() }}
169- uses : codecov/codecov-action@v5.4.3
98+ uses : codecov/codecov-action@v5.5.0
17099 with :
171100 token : ${{ secrets.CODECOV_TOKEN }}
172101 files : coverage.xml
0 commit comments