Skip to content

fix: disable unraisable plugin in runtimes test job #4

fix: disable unraisable plugin in runtimes test job

fix: disable unraisable plugin in runtimes test job #4

Workflow file for this run

name: Runtimes
on:
push:
branches: [main, feat/apps-sdk]
paths:
- "runpod/runtimes/**"
- ".github/workflows/runtimes.yml"
pull_request:
paths:
- "runpod/runtimes/**"
- ".github/workflows/runtimes.yml"
workflow_dispatch:
env:
REGISTRY: docker.io
# dev-suffixed tags for non-main branches so testing never clobbers latest
TAG_SUFFIX: ${{ github.ref == 'refs/heads/main' && 'latest' || 'dev' }}
jobs:
test-runner:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install test deps
run: |
pip install -e .
pip install pytest pytest-asyncio cloudpickle
- name: Run task runner tests
run: pytest tests/test_apps/test_tasks.py tests/test_apps/test_task_runner_http.py -q -o addopts="" -p no:unraisableexception
build-task-cpu:
runs-on: ubuntu-latest
needs: [test-runner]
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v7
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push task image
uses: docker/build-push-action@v6
with:
context: .
file: runpod/runtimes/task/Dockerfile
platforms: linux/amd64
build-args: |
PYTHON_VERSION=${{ matrix.python-version }}
push: ${{ github.event_name != 'pull_request' }}
tags: |
runpod/task:py${{ matrix.python-version }}-${{ env.TAG_SUFFIX }}
cache-from: type=gha,scope=task-py${{ matrix.python-version }}
cache-to: type=gha,mode=max,scope=task-py${{ matrix.python-version }}
build-task-gpu:
runs-on: ubuntu-latest
needs: [test-runner]
steps:
- uses: actions/checkout@v7
- name: Clear space
run: |
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY"
docker system prune -af
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push gpu task image
uses: docker/build-push-action@v6
with:
context: .
file: runpod/runtimes/task/Dockerfile-gpu
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: |
runpod/task-gpu:${{ env.TAG_SUFFIX }}
cache-from: type=gha,scope=task-gpu
cache-to: type=gha,mode=max,scope=task-gpu
build-queue:
runs-on: ubuntu-latest
needs: [test-runner]
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v7
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push queue image
uses: docker/build-push-action@v6
with:
context: .
file: runpod/runtimes/queue/Dockerfile
platforms: linux/amd64
build-args: |
PYTHON_VERSION=${{ matrix.python-version }}
push: ${{ github.event_name != 'pull_request' }}
tags: |
runpod/queue:py${{ matrix.python-version }}-${{ env.TAG_SUFFIX }}
cache-from: type=gha,scope=queue-py${{ matrix.python-version }}
cache-to: type=gha,mode=max,scope=queue-py${{ matrix.python-version }}