Skip to content

Commit 2b36261

Browse files
committed
fix: run tests with code coverage only if enabled
1 parent 4355a33 commit 2b36261

File tree

1 file changed

+4
-0
lines changed
  • {{cookiecutter.project_name}}/.github/workflows

1 file changed

+4
-0
lines changed

{{cookiecutter.project_name}}/.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ jobs:
4444
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
4545

4646
- name: Run tests
47+
{%- if cookiecutter.codecov == "y" %}
4748
run: poetry run pytest tests --cov --cov-config=pyproject.toml --cov-report=xml
49+
{%- else %}
50+
run: poetry run pytest tests
51+
{%- endif %}
4852

4953
- name: Check typing
5054
run: poetry run {{ cookiecutter.typechecking }}

0 commit comments

Comments
 (0)