File tree Expand file tree Collapse file tree
{{cookiecutter.project_slug}} Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88import sys
99
10+
1011# Call fail_if with a Jinja template-based condition to abandon the
1112# cookiecutter generation process with an error.
1213def fail_if (condition , message ):
Original file line number Diff line number Diff line change 5151 - name : Checkout repository
5252 uses : actions/checkout@v4
5353
54- - name : Set up Python ${{ "{{ matrix.python-version }}" }}
55- uses : actions/setup-python@v5
54+ - uses : actions/setup-python@v5
5655 with :
57- python-version : " 3.8 "
56+ python-version : " 3.13 "
5857
5958 - name : Install Python package
6059 run : |
6665 python -m pytest --cov --cov-report=xml
6766
6867 - name : Upload coverage to Codecov
69- uses : codecov/codecov-action@v4
68+ uses : codecov/codecov-action@v5
7069 with :
7170 fail_ci_if_error : true
7271 files : ./tests/coverage.xml
73- env :
74- CODECOV_TOKEN : ${{ "{{ secrets.CODECOV_TOKEN }}" }}
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ The following tasks need to be done to get a fully working project:
1919* Enable the integration of Readthedocs with your Git hoster. In the case of Github, this means
2020 that you need to login at [ Read the Docs] ( https://readthedocs.org ) and click the button
2121 * Import a Project* .
22+ {%- if cookiecutter.github_actions_ci == 'Yes' %}
2223* Enable the integration with ` codecov.io ` by heading to the [ Codecov.io Website] ( https://codecov.io ) ,
2324 log in (e.g. with your Github credentials) and enable integration for your repository. In order to do
24- so, you need to select it from the list of repositories (potentially re-syncing with GitHub) and head
25- to the Settings Tab. Within setting, get your token for this repository and put store it as a secret
26- called ` CODECOV_TOKEN ` for GitHub Actions.
25+ so, you need to select it from the list of repositories (potentially re-syncing with GitHub). Then, head
26+ to the " Settings" Tab and select "Global Upload Token". Here, you should select the "not required" option.
27+ {%- endif %}
You can’t perform that action at this time.
0 commit comments