add pytest-xdist to speed up tests

This commit is contained in:
Matthias
2023-12-24 08:30:21 +01:00
parent 4769b50709
commit 916a847639
2 changed files with 5 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ jobs:
- name: Tests - name: Tests
run: | run: |
pytest --random-order --cov=freqtrade --cov-config=.coveragerc pytest --random-order -n auto --cov=freqtrade --cov-config=.coveragerc
- name: Coveralls - name: Coveralls
if: (runner.os == 'Linux' && matrix.python-version == '3.10' && matrix.os == 'ubuntu-22.04') if: (runner.os == 'Linux' && matrix.python-version == '3.10' && matrix.os == 'ubuntu-22.04')
@@ -188,7 +188,7 @@ jobs:
- name: Tests - name: Tests
run: | run: |
pytest --random-order pytest --random-order -n auto
- name: Check for repository changes - name: Check for repository changes
run: | run: |
@@ -262,7 +262,7 @@ jobs:
- name: Tests - name: Tests
run: | run: |
pytest --random-order pytest --random-order -n auto
- name: Check for repository changes - name: Check for repository changes
run: | run: |
@@ -402,7 +402,7 @@ jobs:
env: env:
CI_WEB_PROXY: http://152.67.78.211:13128 CI_WEB_PROXY: http://152.67.78.211:13128
run: | run: |
pytest --random-order --cov=freqtrade --cov-config=.coveragerc --longrun pytest --random-order --cov=freqtrade --cov-config=.coveragerc --longrun -n auto
# Notify only once - when CI completes (and after deploy) in case it's successfull # Notify only once - when CI completes (and after deploy) in case it's successfull

View File

@@ -15,6 +15,7 @@ pytest-asyncio==0.21.1
pytest-cov==4.1.0 pytest-cov==4.1.0
pytest-mock==3.12.0 pytest-mock==3.12.0
pytest-random-order==1.1.0 pytest-random-order==1.1.0
pytest-xdist==3.5.0
isort==5.13.2 isort==5.13.2
# For datetime mocking # For datetime mocking
time-machine==2.13.0 time-machine==2.13.0