Skip to content

Commit 1a59a7a

Browse files
authored
Run actions in Parallel (#1763)
1 parent 8f5c1e6 commit 1a59a7a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/integration.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ jobs:
3434
max-parallel: 6
3535
matrix:
3636
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.7']
37+
test-type: ['standalone', 'cluster']
38+
connection-type: ['hiredis', 'plain']
3739
env:
3840
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
39-
name: Python ${{ matrix.python-version }} tests
41+
name: Python ${{ matrix.python-version }} ${{matrix.test-type}}-${{matrix.connection-type}} tests
4042
steps:
4143
- uses: actions/checkout@v2
4244
- name: install python
@@ -46,7 +48,7 @@ jobs:
4648
- name: run tests
4749
run: |
4850
pip install -r dev_requirements.txt
49-
invoke tests
51+
tox -e ${{matrix.test-type}}-${{matrix.connection-type}}
5052
- name: Upload codecov coverage
5153
uses: codecov/codecov-action@v2
5254
with:

tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def standalone_tests(c):
5555
"""Run all Redis tests against the current python,
5656
with and without hiredis."""
5757
print("Starting Redis tests")
58-
run("tox -e standalone-'{hiredis}'")
58+
run("tox -e standalone-'{plain,hiredis}'")
5959

6060

6161
@task

0 commit comments

Comments
 (0)