Set up some tests to be skipped in CI builds

This commit is contained in:
Aaron Heise 2023-02-11 11:22:03 -06:00
parent 86906fd8f4
commit ef6a4ebb25
3 changed files with 7 additions and 2 deletions

View File

@ -39,4 +39,4 @@ jobs:
# run: poetry run black . --check
- name: Test with pytest
run: poetry run pytest tests
run: poetry run pytest "not skip_ci" tests

View File

@ -15,13 +15,17 @@ psutil = "^5.9.4"
[tool.poetry.scripts]
rnsh = 'rnsh.rnsh:rnsh_cli'
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.1"
setuptools = "^67.2.0"
black = "^23.1.0"
pytest-asyncio = "^0.20.3"
[tool.pytest.ini_options]
markers = [
"skip_ci: marks tests that should not be run in CI builds (deselect with '-m \"not skip_ci\"')"
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

View File

@ -52,6 +52,7 @@ class State(contextlib.AbstractContextManager):
return False
@pytest.mark.skip_ci
@pytest.mark.asyncio
async def test_echo():
"""