From 8951361f061d91f5f82de483068981311c0c9a35 Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Wed, 1 Dec 2021 20:03:11 +0200 Subject: [PATCH 1/2] Splitting GitHub actions --- .github/workflows/integration.yaml | 4 +++- tasks.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 5384996c70..60362e68fe 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -34,6 +34,8 @@ 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 @@ -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 8d9c4c64be..48ad9e7b62 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 From 8db56d538922f19d05e8959b61dcc6146eb26c87 Mon Sep 17 00:00:00 2001 From: "Chayim I. Kirshen" Date: Wed, 1 Dec 2021 20:05:07 +0200 Subject: [PATCH 2/2] fixing names --- .github/workflows/integration.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 60362e68fe..10ab3ed03e 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -38,7 +38,7 @@ jobs: 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