File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
10- python-version : [3.6, 3.7, 3.8 ]
10+ python-version : ['3.7', '3.8', '3.9', '3.10' ]
1111 steps :
12- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v4
1313 - name : Set up Python ${{ matrix.python-version }}
14- uses : actions/setup-python@v2
14+ uses : actions/setup-python@v5
1515 with :
1616 python-version : ${{ matrix.python-version }}
1717 - name : Install dependencies
@@ -30,11 +30,11 @@ jobs:
3030 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3131 runs-on : ubuntu-latest
3232 steps :
33- - uses : actions/checkout@v2
33+ - uses : actions/checkout@v4
3434 - name : Set up Python
35- uses : actions/setup-python@v2
35+ uses : actions/setup-python@v5
3636 with :
37- python-version : 3.8
37+ python-version : ' 3.8'
3838 - name : Install Packaging Tools
3939 run : |
4040 make package.install
Original file line number Diff line number Diff line change @@ -121,17 +121,19 @@ def export(self, spans):
121121 if not tracked_spans and not untracked_spans :
122122 return SpanExportResult .SUCCESS
123123 url = urllib .parse .urljoin (self ._codecov_endpoint , "/profiling/uploads" )
124+ headers = {"Authorization" : f"repotoken { self ._repository_token } " }
125+ json_data = {"profiling" : self ._code }
124126 try :
125127 res = requests .post (
126128 url ,
127- headers = { "Authorization" : f"repotoken { self . _repository_token } " } ,
128- json = { "profiling" : self . _code } ,
129+ headers = headers ,
130+ json = json_data ,
129131 )
130132 res .raise_for_status ()
131133 except requests .RequestException :
132134 log .warning (
133135 "Unable to send profiling data to codecov" ,
134- extra = dict (response_data = res . json () )
136+ extra = dict (url = url , json = json_data )
135137 )
136138 return SpanExportResult .FAILURE
137139 location = res .json ()["raw_upload_location" ]
You can’t perform that action at this time.
0 commit comments