File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,31 @@ jobs:
1515
1616 steps :
1717 - name : Checkout
18- uses : actions/checkout@v4
18+ uses : actions/checkout@v6
1919
20- - name : Set up Python
21- uses : actions /setup-python@v5
20+ - name : Setup uv
21+ uses : astral-sh /setup-uv@v8.0.0
2222 with :
2323 python-version : " 3.12"
2424
2525 - name : Install dependencies
2626 run : |
27- python -m pip install --upgrade pip
28- python -m pip install -e '.[dev]' coverage
27+ uv venv && uv pip install -e '.[dev]' coverage
2928
3029 - name : Run tests with coverage
31- run : python -m coverage run -m unittest
30+ run : uv run coverage run -m unittest
3231
3332 - name : Print coverage summary
34- run : python -m coverage report -m --fail-under=70
35-
36-
33+ run : uv run coverage report -m --fail-under=70
34+
35+ - name : Generate coverage XML
36+ run : uv run coverage xml -o coverage.xml
37+
38+ - name : Upload coverage to Codecov
39+ if : ${{ !cancelled() && hashFiles('coverage.xml') != '' }}
40+ uses : codecov/codecov-action@v5
41+ with :
42+ token : ${{ secrets.CODECOV_TOKEN }}
43+ flags : connectors
44+ fail_ci_if_error : false
45+ verbose : true
You can’t perform that action at this time.
0 commit comments