@@ -45,31 +45,39 @@ jobs:
4545 - name : Test anthropic latest
4646 run : |
4747 set -x # print commands that are executed
48- ./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
48+ ./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic-latest"
4949 - name : Test cohere latest
5050 run : |
5151 set -x # print commands that are executed
52- ./scripts/runtox.sh "py${{ matrix.python-version }}-cohere-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
52+ ./scripts/runtox.sh "py${{ matrix.python-version }}-cohere-latest"
5353 - name : Test langchain latest
5454 run : |
5555 set -x # print commands that are executed
56- ./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
56+ ./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-latest"
5757 - name : Test openai latest
5858 run : |
5959 set -x # print commands that are executed
60- ./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
60+ ./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest"
6161 - name : Test huggingface_hub latest
6262 run : |
6363 set -x # print commands that are executed
64- ./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
64+ ./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub-latest"
6565 - name : Generate coverage XML
66+ if : ${{ !cancelled() }}
6667 run : |
6768 coverage combine .coverage*
6869 coverage xml -i
69- - uses : codecov/codecov-action@v4
70+ - name : Upload coverage to Codecov
71+ if : ${{ !cancelled() }}
72+ uses : codecov/codecov-action@v4.5.0
7073 with :
7174 token : ${{ secrets.CODECOV_TOKEN }}
7275 files : coverage.xml
76+ - name : Upload test results to Codecov
77+ if : ${{ !cancelled() }}
78+ uses : codecov/test-results-action@v1
79+ with :
80+ token : ${{ secrets.CODECOV_TOKEN }}
7381 test-ai-pinned :
7482 name : AI (pinned)
7583 timeout-minutes : 30
@@ -97,31 +105,39 @@ jobs:
97105 - name : Test anthropic pinned
98106 run : |
99107 set -x # print commands that are executed
100- ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-anthropic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
108+ ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-anthropic"
101109 - name : Test cohere pinned
102110 run : |
103111 set -x # print commands that are executed
104- ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cohere" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
112+ ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cohere"
105113 - name : Test langchain pinned
106114 run : |
107115 set -x # print commands that are executed
108- ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
116+ ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-langchain"
109117 - name : Test openai pinned
110118 run : |
111119 set -x # print commands that are executed
112- ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
120+ ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai"
113121 - name : Test huggingface_hub pinned
114122 run : |
115123 set -x # print commands that are executed
116- ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huggingface_hub" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
124+ ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huggingface_hub"
117125 - name : Generate coverage XML
126+ if : ${{ !cancelled() }}
118127 run : |
119128 coverage combine .coverage*
120129 coverage xml -i
121- - uses : codecov/codecov-action@v4
130+ - name : Upload coverage to Codecov
131+ if : ${{ !cancelled() }}
132+ uses : codecov/codecov-action@v4.5.0
122133 with :
123134 token : ${{ secrets.CODECOV_TOKEN }}
124135 files : coverage.xml
136+ - name : Upload test results to Codecov
137+ if : ${{ !cancelled() }}
138+ uses : codecov/test-results-action@v1
139+ with :
140+ token : ${{ secrets.CODECOV_TOKEN }}
125141 check_required_tests :
126142 name : All AI tests passed
127143 needs : test-ai-pinned
0 commit comments