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 # run: poetry run black . --check
- name: Test with pytest - 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] [tool.poetry.scripts]
rnsh = 'rnsh.rnsh:rnsh_cli' rnsh = 'rnsh.rnsh:rnsh_cli'
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
pytest = "^7.2.1" pytest = "^7.2.1"
setuptools = "^67.2.0" setuptools = "^67.2.0"
black = "^23.1.0" black = "^23.1.0"
pytest-asyncio = "^0.20.3" 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] [build-system]
requires = ["poetry-core"] requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"

View file

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