Skip to content

Commit

Permalink
Fix hatch scripts and windows workflow run (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Nov 18, 2022
1 parent 28577cf commit 0f07dd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
if: ${{ startsWith(matrix.python-version, 'pypy') }}
run: hatch run test:test || hatch run test:test --lf
- name: Run the tests on windows
if: ${{ startsWith(matrix.python-version, 'windows') }}
if: ${{ startsWith(matrix.os, 'windows') }}
run: hatch run cov:nowarn -s || hatch run cov:nowarn --lf
- name: Coverage
run: |
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,15 @@ build = "make -C docs html SPHINXOPTS='-W'"
features = ["test"]
[tool.hatch.envs.test.scripts]
test = "python -m pytest -vv {args}"
nowarn = "python -m pytest -vv -W default {args}"
nowarn = "test -W default {args}"

[tool.hatch.envs.cov]
features = ["test"]
dependencies = ["coverage", "pytest-cov"]
[tool.hatch.envs.cov.env-vars]
ARGS = "-vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered"
[tool.hatch.envs.cov.scripts]
test = "python -m pytest $ARGS {args}"
nwarn = "python -m pytest $ARGS -W default {args}"
integration = "python -m pytest $ARGS --integration_tests=true {args}"
test = "python -m pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered {args}"
nowarn = "test -W default {args}"
integration = "test --integration_tests=true {args}"

[tool.hatch.version]
path = "jupyter_server/_version.py"
Expand Down

0 comments on commit 0f07dd6

Please sign in to comment.