Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix action errors when codecov is "n" and replaced hardcoded names with placeholders #21

Merged
merged 4 commits into from
Nov 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update main.yml
remove flags only supported with pytest-cov if the dependency is not installed which happens when cookiecutter.codecov == "n" is selected.
  • Loading branch information
pancan21 authored Oct 28, 2024
commit e09af605431b80e53bafa816d6e8a65a4a259fa0
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}

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

- name: Check typing
run: uv run mypy
Expand Down