Skip to content

Commit f5e665b

Browse files
committed
Fix CI async pytest setup
1 parent b3321c1 commit f5e665b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
working-directory: python
4040
run: |
4141
python -m pip install --upgrade pip
42-
python -m pip install pytest build twine
42+
python -m pip install pytest pytest-asyncio build twine
4343
- name: Run tests
4444
working-directory: python
4545
run: python -m pytest
@@ -63,3 +63,4 @@ jobs:
6363
run: python -m json.tool protocol/bridge-protocol-v1.schema.json > /dev/null
6464
- name: Ensure protocol doc exists
6565
run: test -f protocol/bridge-protocol-v1.md
66+

python/pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ classifiers = [
2525
]
2626
dependencies = []
2727

28+
[project.optional-dependencies]
29+
test = [
30+
"pytest>=8.0",
31+
"pytest-asyncio>=0.23"
32+
]
33+
2834
[project.urls]
2935
Homepage = "https://github.com/pyritone/Py-Ritone"
3036
Repository = "https://github.com/pyritone/Py-Ritone"
@@ -48,4 +54,4 @@ include = [
4854
[tool.pytest.ini_options]
4955
pythonpath = ["src"]
5056
addopts = "-q"
51-
57+
asyncio_mode = "auto"

0 commit comments

Comments
 (0)