From 1a59a7a45feaed2bd0e33ccdbcd92cd305fd7e44 Mon Sep 17 00:00:00 2001 From: Chayim Date: Thu, 2 Dec 2021 15:54:29 +0200 Subject: Run actions in Parallel (#1763) --- .github/workflows/integration.yaml | 6 ++++-- 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: diff --git a/tasks.py b/tasks.py index 9291e7e..880e70d 100644 --- a/tasks.py +++ b/tasks.py @@ -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 -- cgit v1.2.1