Skip to content

Commit

Permalink
Moved smoke tests to their own workflow (#8797)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Jan 17, 2024
1 parent ec636fa commit f2407dc
Showing 1 changed file with 337 additions and 34 deletions.
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

0 comments on commit f2407dc

Please sign in to comment.