Skip to content

Commit e9a8359

Browse files
author
Tomasz Szymański
committed
use pytest-xdist for running tests in parallel
1 parent b4aadf1 commit e9a8359

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36-
python -m pip install mypy flake8 pytest pytest-cov boto3
36+
python -m pip install mypy flake8 pytest pytest-cov pytest-xdist boto3
3737
- name: Lint with flake8
3838
run: |
3939
# stop the build if there are Python syntax errors or undefined names
@@ -43,7 +43,7 @@ jobs:
4343
mypy ./storages/
4444
- name: Test with pytest
4545
run: |
46-
python -m pytest --cov-report=xml --cov=storages/
46+
python -m pytest -n 5 --cov-report=xml --cov=storages/
4747
- uses: codecov/codecov-action@v1
4848
with:
4949
files: ./coverage.xml

0 commit comments

Comments
 (0)