diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ad9e22112bf..a9c6d89ab2e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -122,41 +122,344 @@ jobs: tox --verbose --verbose -e "${{ matrix.python-version }}-integration-${{ matrix.toxenv }}" -vv - Smoke: - needs: - - Integration - if: needs.Integration.result == 'success' - timeout-minutes: 240 + failover: + needs: + - Integration + if: needs.Integration.result == 'success' + timeout-minutes: 240 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + steps: + - name: Fetch Docker Images + run: | + docker pull redis:latest + docker pull rabbitmq:latest - steps: - - name: Fetch Docker Images - run: | - docker pull redis:latest - docker pull rabbitmq:latest + - name: Install apt packages + run: | + sudo apt update - - name: Install apt packages - run: | - sudo apt update + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/setup.py' + - name: Install tox + run: python -m pip install --upgrade pip tox tox-gh-actions + - name: > + Run tox for + "${{ matrix.python-version }}-smoke" + timeout-minutes: 60 + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-smoke" -- -n auto -k failover - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: 'pip' - cache-dependency-path: '**/setup.py' - - name: Install tox - run: python -m pip install --upgrade pip tox tox-gh-actions - - name: > - Run tox for - "${{ matrix.python-version }}-smoke" - timeout-minutes: 60 - run: > - tox --verbose --verbose -e - "${{ matrix.python-version }}-smoke" -- -n auto + stamping: + needs: + - Integration + if: needs.Integration.result == 'success' + timeout-minutes: 240 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - name: Fetch Docker Images + run: | + docker pull redis:latest + docker pull rabbitmq:latest + + - name: Install apt packages + run: | + sudo apt update + + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/setup.py' + - name: Install tox + run: python -m pip install --upgrade pip tox tox-gh-actions + - name: > + Run tox for + "${{ matrix.python-version }}-smoke" + timeout-minutes: 60 + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-smoke" -- -n auto -k stamping + + canvas: + needs: + - Integration + if: needs.Integration.result == 'success' + timeout-minutes: 240 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - name: Fetch Docker Images + run: | + docker pull redis:latest + docker pull rabbitmq:latest + + - name: Install apt packages + run: | + sudo apt update + + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/setup.py' + - name: Install tox + run: python -m pip install --upgrade pip tox tox-gh-actions + - name: > + Run tox for + "${{ matrix.python-version }}-smoke" + timeout-minutes: 60 + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-smoke" -- -n auto -k test_canvas.py + + consumer: + needs: + - Integration + if: needs.Integration.result == 'success' + timeout-minutes: 240 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - name: Fetch Docker Images + run: | + docker pull redis:latest + docker pull rabbitmq:latest + + - name: Install apt packages + run: | + sudo apt update + + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/setup.py' + - name: Install tox + run: python -m pip install --upgrade pip tox tox-gh-actions + - name: > + Run tox for + "${{ matrix.python-version }}-smoke" + timeout-minutes: 60 + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-smoke" -- -n auto -k test_consumer.py + + control: + needs: + - Integration + if: needs.Integration.result == 'success' + timeout-minutes: 240 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - name: Fetch Docker Images + run: | + docker pull redis:latest + docker pull rabbitmq:latest + + - name: Install apt packages + run: | + sudo apt update + + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/setup.py' + - name: Install tox + run: python -m pip install --upgrade pip tox tox-gh-actions + - name: > + Run tox for + "${{ matrix.python-version }}-smoke" + timeout-minutes: 60 + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-smoke" -- -n auto -k test_control.py + + signals: + needs: + - Integration + if: needs.Integration.result == 'success' + timeout-minutes: 240 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - name: Fetch Docker Images + run: | + docker pull redis:latest + docker pull rabbitmq:latest + + - name: Install apt packages + run: | + sudo apt update + + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/setup.py' + - name: Install tox + run: python -m pip install --upgrade pip tox tox-gh-actions + - name: > + Run tox for + "${{ matrix.python-version }}-smoke" + timeout-minutes: 60 + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-smoke" -- -n auto -k test_signals.py + + tasks: + needs: + - Integration + if: needs.Integration.result == 'success' + timeout-minutes: 240 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - name: Fetch Docker Images + run: | + docker pull redis:latest + docker pull rabbitmq:latest + + - name: Install apt packages + run: | + sudo apt update + + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/setup.py' + - name: Install tox + run: python -m pip install --upgrade pip tox tox-gh-actions + - name: > + Run tox for + "${{ matrix.python-version }}-smoke" + timeout-minutes: 60 + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-smoke" -- -n auto -k test_tasks.py + + thread_safe: + needs: + - Integration + if: needs.Integration.result == 'success' + timeout-minutes: 240 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - name: Fetch Docker Images + run: | + docker pull redis:latest + docker pull rabbitmq:latest + + - name: Install apt packages + run: | + sudo apt update + + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/setup.py' + - name: Install tox + run: python -m pip install --upgrade pip tox tox-gh-actions + - name: > + Run tox for + "${{ matrix.python-version }}-smoke" + timeout-minutes: 60 + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-smoke" -- -n auto -k test_thread_safe.py + + worker: + needs: + - Integration + if: needs.Integration.result == 'success' + timeout-minutes: 240 + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - name: Fetch Docker Images + run: | + docker pull redis:latest + docker pull rabbitmq:latest + + - name: Install apt packages + run: | + sudo apt update + + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: '**/setup.py' + - name: Install tox + run: python -m pip install --upgrade pip tox tox-gh-actions + - name: > + Run tox for + "${{ matrix.python-version }}-smoke" + timeout-minutes: 60 + run: > + tox --verbose --verbose -e + "${{ matrix.python-version }}-smoke" -- -n auto -k test_worker.py