Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Run unit tests with pytest / pytest-copie
run: |
git config --global init.defaultBranch main
python -m pytest tests --python_version ${{ matrix.python-version }}
python -m pytest tests -o log_cli=true -vv --python_version ${{ matrix.python-version }}
- name: Send status to Slack app
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
id: slack
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
- name: Run unit tests with pytest / pytest-copie
run: |
git config --global init.defaultBranch main
python -m pytest tests --python_version ${{ matrix.python-version }}
python -m pytest tests -o log_cli=true -vv --python_version ${{ matrix.python-version }}
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ line-length = 110
[tool.isort]
profile = "black"
line_length = 110

[tool.pytest.ini_options]
log_cli_level = "INFO"
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
pip list
- name: Run unit tests with pytest
run: |
python -m pytest
python -m pytest -o log_cli=true -vv
{%- if 'email' in failure_notification %}
- name: Send status to author's email
if: {% raw %}${{ failure() }} && github.event_name != 'workflow_dispatch' }}{% endraw %} # Only email if the workflow failed and was not manually started. Customize this as necessary.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
if [ -f requirements.txt ]; then uv pip install --system -r requirements.txt; fi
- name: Run unit tests with pytest
run: |
python -m pytest --cov={{package_name}} --cov-report=xml
python -m pytest -o log_cli=true -vv --cov={{package_name}} --cov-report=xml
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v7
with:
Expand Down
1 change: 1 addition & 0 deletions python-project-template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ testpaths = [
"docs",
]
addopts = "--doctest-modules --doctest-glob=*.rst"
log_cli_level = "INFO"

{% if 'black' in enforce_style -%}
[tool.black]
Expand Down
Loading