Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved smoke tests to their own workflow #8797

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
371 changes: 337 additions & 34 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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