Skip to content

Commit

Permalink
ci: use pytest-xdist to parallelize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ruddick committed Apr 24, 2024
1 parent cae40ac commit c2c037e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
python -m mypy asyncua/
- name: Test with pytest
run: |
pytest -v
pytest -v -n auto
1 change: 1 addition & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pytest-asyncio == 0.21.1
coverage
pytest-cov
pytest-mock
pytest-xdist == 3.5.0
asynctest
types-aiofiles
types-pyOpenSSL
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
]
},
setup_requires=[] + pytest_runner,
tests_require=['pytest', 'pytest-mock', 'asynctest'],
tests_require=['pytest', 'pytest-mock', 'pytest-xdist', 'asynctest'],
)

0 comments on commit c2c037e

Please sign in to comment.