Skip to content

Commit 0f3f2ed

Browse files
authored
Using the Codecov uploader instead of deprecated python package (getsentry#2011)
1 parent 8df02bf commit 0f3f2ed

37 files changed

+257
-78
lines changed

.github/workflows/test-common.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test common
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All common tests passed or skipped

.github/workflows/test-integration-aiohttp.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test aiohttp
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All aiohttp tests passed or skipped

.github/workflows/test-integration-arq.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test arq
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All arq tests passed or skipped

.github/workflows/test-integration-asgi.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test asgi
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All asgi tests passed or skipped

.github/workflows/test-integration-aws_lambda.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test aws_lambda
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All aws_lambda tests passed or skipped

.github/workflows/test-integration-beam.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test beam
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All beam tests passed or skipped

.github/workflows/test-integration-boto3.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test boto3
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All boto3 tests passed or skipped

.github/workflows/test-integration-bottle.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test bottle
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All bottle tests passed or skipped

.github/workflows/test-integration-celery.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test celery
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All celery tests passed or skipped

.github/workflows/test-integration-chalice.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test chalice
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All chalice tests passed or skipped

.github/workflows/test-integration-cloud_resource_context.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test cloud_resource_context
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All cloud_resource_context tests passed or skipped

.github/workflows/test-integration-django.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: Setup Test Env
6666
run: |
67-
pip install codecov "tox>=3,<4"
67+
pip install coverage "tox>=3,<4"
6868
6969
- name: Test django
7070
timeout-minutes: 45
@@ -73,10 +73,15 @@ jobs:
7373
set -x # print commands that are executed
7474
coverage erase
7575
76+
# Run tests
7677
./scripts/runtox.sh "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
7778
coverage combine .coverage*
7879
coverage xml -i
79-
codecov --file coverage.xml
80+
81+
- uses: codecov/codecov-action@v3
82+
with:
83+
token: ${{ secrets.CODECOV_TOKEN }}
84+
files: coverage.xml
8085

8186
check_required_tests:
8287
name: All django tests passed or skipped

.github/workflows/test-integration-falcon.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test falcon
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All falcon tests passed or skipped

.github/workflows/test-integration-fastapi.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test fastapi
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All fastapi tests passed or skipped

.github/workflows/test-integration-flask.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup Test Env
4848
run: |
49-
pip install codecov "tox>=3,<4"
49+
pip install coverage "tox>=3,<4"
5050
5151
- name: Test flask
5252
timeout-minutes: 45
@@ -55,10 +55,15 @@ jobs:
5555
set -x # print commands that are executed
5656
coverage erase
5757
58+
# Run tests
5859
./scripts/runtox.sh "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
5960
coverage combine .coverage*
6061
coverage xml -i
61-
codecov --file coverage.xml
62+
63+
- uses: codecov/codecov-action@v3
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: coverage.xml
6267

6368
check_required_tests:
6469
name: All flask tests passed or skipped

0 commit comments

Comments
 (0)