File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 17
17
jobs :
18
18
run :
19
19
runs-on : ${{ matrix.os }}
20
- timeout-minutes : 10
20
+ timeout-minutes : 25
21
+
22
+ env :
23
+ RESONATE_HOST : http://localhost
21
24
22
25
strategy :
23
26
fail-fast : true
24
27
matrix :
25
28
os : [ubuntu-latest, macos-latest]
26
- python-version : [" 3.12", " 3.13" ]
27
- server-version : [" main", " latest" ]
29
+ python-version : [3.12, 3.13]
30
+ server-version : [main, latest]
28
31
29
32
steps :
30
33
- uses : actions/checkout@v4
77
80
run : ./resonate serve --system-signal-timeout 0.1s &
78
81
working-directory : server
79
82
80
- - name : run tests
81
- env :
82
- RESONATE_HOST : http://localhost
83
+ - name : run tests with coverage
84
+ id : coverage
85
+ if : ${{ matrix.server-version == 'latest' && matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/main' }}
86
+ run : uv run pytest --cov --cov-branch --cov-report=xml
83
87
88
+ - name : Upload coverage reports to Codecov
89
+ if : ${{ steps.coverage.outcome != 'skipped' }}
90
+ uses : codecov/codecov-action@v5
91
+ with :
92
+ token : ${{ secrets.CODECOV_TOKEN }}
93
+
94
+ - name : run tests
95
+ if : ${{ steps.coverage.outcome == 'skipped' }}
84
96
run : uv run pytest
Original file line number Diff line number Diff line change 7
7
<div align =" center " >
8
8
9
9
[ ![ ci] ( https://github.com/resonatehq/resonate-sdk-py/actions/workflows/ci.yml/badge.svg )] ( https://github.com/resonatehq/resonate-sdk-py/actions/workflows/ci.yml )
10
+ [ ![ codecov] ( https://codecov.io/gh/resonatehq/resonate-sdk-py/graph/badge.svg?token=61GYC3DXID )] ( https://codecov.io/gh/resonatehq/resonate-sdk-py )
10
11
[ ![ dst] ( https://github.com/resonatehq/resonate-sdk-py/actions/workflows/dst.yml/badge.svg )] ( https://github.com/resonatehq/resonate-sdk-py/actions/workflows/dst.yml )
11
12
[ ![ License] ( https://img.shields.io/badge/License-Apache_2.0-blue.svg )] ( https://opensource.org/licenses/Apache-2.0 )
12
13
You can’t perform that action at this time.
0 commit comments