Skip to content

Commit 0f07dd6

Browse files
authored
Fix hatch scripts and windows workflow run (#1074)
1 parent 28577cf commit 0f07dd6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
if: ${{ startsWith(matrix.python-version, 'pypy') }}
4545
run: hatch run test:test || hatch run test:test --lf
4646
- name: Run the tests on windows
47-
if: ${{ startsWith(matrix.python-version, 'windows') }}
47+
if: ${{ startsWith(matrix.os, 'windows') }}
4848
run: hatch run cov:nowarn -s || hatch run cov:nowarn --lf
4949
- name: Coverage
5050
run: |

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,15 @@ build = "make -C docs html SPHINXOPTS='-W'"
9696
features = ["test"]
9797
[tool.hatch.envs.test.scripts]
9898
test = "python -m pytest -vv {args}"
99-
nowarn = "python -m pytest -vv -W default {args}"
99+
nowarn = "test -W default {args}"
100100

101101
[tool.hatch.envs.cov]
102102
features = ["test"]
103103
dependencies = ["coverage", "pytest-cov"]
104-
[tool.hatch.envs.cov.env-vars]
105-
ARGS = "-vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered"
106104
[tool.hatch.envs.cov.scripts]
107-
test = "python -m pytest $ARGS {args}"
108-
nwarn = "python -m pytest $ARGS -W default {args}"
109-
integration = "python -m pytest $ARGS --integration_tests=true {args}"
105+
test = "python -m pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered {args}"
106+
nowarn = "test -W default {args}"
107+
integration = "test --integration_tests=true {args}"
110108

111109
[tool.hatch.version]
112110
path = "jupyter_server/_version.py"

0 commit comments

Comments
 (0)