Skip to content

Commit

Permalink
fix: run tests with code coverage only if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fry69 committed Oct 9, 2024
1 parent 4355a33 commit 2b36261
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions {{cookiecutter.project_name}}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ jobs:
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}

- name: Run tests
{%- if cookiecutter.codecov == "y" %}
run: poetry run pytest tests --cov --cov-config=pyproject.toml --cov-report=xml
{%- else %}
run: poetry run pytest tests
{%- endif %}

- name: Check typing
run: poetry run {{ cookiecutter.typechecking }}
Expand Down

0 comments on commit 2b36261

Please sign in to comment.