Skip to content

Commit 85decc5

Browse files
committed
parallel test runs for all test suites
1 parent 402a579 commit 85decc5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
7878
# Run remaining local tests
7979
echo "Running other local tests..."
80-
pytest -m "not mongo and not sql and not redis and not memory and not pickle" --cov=cachier --cov-report=term --cov-report=xml:cov-other.xml --cov-append
80+
pytest -m "not mongo and not sql and not redis and not memory and not pickle" -n auto --cov=cachier --cov-report=term --cov-report=xml:cov-other.xml --cov-append
8181
8282
# Combine coverage reports
8383
coverage combine
@@ -115,7 +115,7 @@ jobs:
115115
116116
- name: Unit tests (DB)
117117
if: matrix.backend == 'mongodb'
118-
run: pytest -m "mongo" --cov=cachier --cov-report=term --cov-report=xml:cov.xml
118+
run: pytest -m "mongo" -n auto --cov=cachier --cov-report=term --cov-report=xml:cov.xml
119119
- name: Speed eval
120120
run: python tests/speed_eval.py
121121

@@ -141,7 +141,7 @@ jobs:
141141
if: matrix.backend == 'postgres'
142142
env:
143143
SQLALCHEMY_DATABASE_URL: postgresql://testuser:testpass@localhost:5432/testdb
144-
run: pytest -m sql --cov=cachier --cov-report=term --cov-report=xml:cov.xml
144+
run: pytest -m sql -n auto --cov=cachier --cov-report=term --cov-report=xml:cov.xml
145145

146146
- name: Start Redis in docker
147147
if: matrix.backend == 'redis'
@@ -160,7 +160,7 @@ jobs:
160160
161161
- name: Unit tests (Redis)
162162
if: matrix.backend == 'redis'
163-
run: pytest -m redis --cov=cachier --cov-report=term --cov-report=xml:cov.xml
163+
run: pytest -m redis -n auto --cov=cachier --cov-report=term --cov-report=xml:cov.xml
164164

165165
- name: Upload coverage to Codecov (non PRs)
166166
continue-on-error: true

0 commit comments

Comments
 (0)