Skip to content

Commit 229f472

Browse files
committed
exclude the option of tox parsing weird
1 parent 3ea7c6a commit 229f472

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ jobs:
5151
pip-install: ".[dev]"
5252

5353
- name: Run tests
54-
run: tox -e tests-report
54+
run: tox -e report
55+
5556
- name: Check test durations
5657
run: |
5758
python .github/scripts/check_test_durations.py

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ legacy_tox_ini = """
142142
[tox]
143143
skipsdist=True
144144
145-
[testenv:{pre-commit,type-checking,tests,docs,tests-report}]
145+
[testenv:{pre-commit,type-checking,tests,docs,report}]
146146
# Don't create a virtualenv for the command, requires tox-direct plugin
147147
direct = True
148148
passenv = *
@@ -157,7 +157,7 @@ commands =
157157
type-checking: pyright src tests {posargs}
158158
pre-commit: pre-commit run --all-files --show-diff-on-failure {posargs}
159159
docs: sphinx-{posargs:build -E} -T docs build/html
160-
tests-report: pytest -m 'not (s03 or adsim)' --cov=dodal --cov-report term --cov-report xml:cov.xml --json-report --json-report-file=report.json {posargs}
160+
report: pytest -m 'not (s03 or adsim)' --cov=dodal --cov-report term --cov-report xml:cov.xml --json-report --json-report-file=report.json {posargs}
161161
"""
162162

163163
[tool.ruff]

0 commit comments

Comments
 (0)