diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-12-02 15:54:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 15:54:29 +0200 |
commit | 1a59a7a45feaed2bd0e33ccdbcd92cd305fd7e44 (patch) | |
tree | 1bb697b0503cf42873b1183b502dc041d4c9321d | |
parent | 8f5c1e6b14c4c82d04a3ad141821e2fdabdd0dab (diff) | |
download | redis-py-1a59a7a45feaed2bd0e33ccdbcd92cd305fd7e44.tar.gz |
Run actions in Parallel (#1763)
-rw-r--r-- | .github/workflows/integration.yaml | 6 | ||||
-rw-r--r-- | tasks.py | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 5384996..10ab3ed 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -34,9 +34,11 @@ jobs: max-parallel: 6 matrix: python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.7'] + test-type: ['standalone', 'cluster'] + connection-type: ['hiredis', 'plain'] env: ACTIONS_ALLOW_UNSECURE_COMMANDS: true - name: Python ${{ matrix.python-version }} tests + name: Python ${{ matrix.python-version }} ${{matrix.test-type}}-${{matrix.connection-type}} tests steps: - uses: actions/checkout@v2 - name: install python @@ -46,7 +48,7 @@ jobs: - name: run tests run: | pip install -r dev_requirements.txt - invoke tests + tox -e ${{matrix.test-type}}-${{matrix.connection-type}} - name: Upload codecov coverage uses: codecov/codecov-action@v2 with: @@ -55,7 +55,7 @@ def standalone_tests(c): """Run all Redis tests against the current python, with and without hiredis.""" print("Starting Redis tests") - run("tox -e standalone-'{hiredis}'") + run("tox -e standalone-'{plain,hiredis}'") @task |