@@ -3,6 +3,8 @@ name: Codecov Coverage Report
33
44on : # yamllint disable-line rule:truthy
55 pull_request_target :
6+ branches :
7+ - ' none'
68 types :
79 - opened
810 - edited
@@ -19,14 +21,15 @@ jobs:
1921 runs-on : ${{ matrix.os }}
2022 strategy :
2123 matrix :
22- os : [ubuntu-latest]
23- python-version : ["3.12"]
24+ os : ['ubuntu-24.04']
2425 steps :
2526 - uses : actions/checkout@main
2627 - name : Setup Python
2728 uses : actions/setup-python@main
2829 with :
29- python-version : ${{ matrix.python-version }}
30+ python-version : " 3.12"
31+ check-latest : true
32+ - run : python --version
3033 - name : Install prerequisites
3134 run : |
3235 python -m pip install --upgrade pip setuptools wheel
@@ -36,15 +39,15 @@ jobs:
3639 pip install pytest
3740 pip install pytest-cov
3841 - name : Generate coverage report
42+ # You must now upload using a token.
43+ # https://app.codecov.io/gh/iKostanOrg/codewars/tests/new
3944 # yamllint disable rule:line-length
4045 run : |
4146 python -c "import os; print(os.getcwd())"
42- python -m pytest . -v --cov-report term-missing --cov-report=xml --cov=./
47+ python -m pytest . -v --cov-report term-missing --cov-report=xml --cov=./ --junitxml=junit.xml -o junit_family=legacy --debug
4348 # yamllint enable rule:line-length
44- - name : Upload coverage to Codecov
45- 49+ - name : Upload test results to Codecov
50+ if : ${{ !cancelled() }}
51+ uses : codecov/test-results-action@v1
4652 with :
4753 token : ${{ secrets.codecov_token }}
48- files : coverage.xml
49- fail_ci_if_error : true # optional (default = false)
50- verbose : true # optional (default = false)
0 commit comments