Skip to content

Add Sandbox SDK on a unified httpx client (0.2.0) #81

Add Sandbox SDK on a unified httpx client (0.2.0)

Add Sandbox SDK on a unified httpx client (0.2.0) #81

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
unit-tests:
if: github.event.pull_request.draft == false
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
include:
- os: macos-latest
python-version: '3.12'
- os: windows-latest
python-version: '3.12'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run lint check
run: |
ruff check .
- name: Run type check
run: |
mypy
- name: Run unit tests
run: |
pytest tests
e2e-tests:
# Runs only when manually dispatched (needs the stage API key secret).
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
environment: e2e
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install -e ".[dev]"
- name: Run e2e against stage
env:
DEEPINFRA_E2E: '1'
DEEPINFRA_BASE_URL: https://stage.api.deepinfra.com
DEEPINFRA_API_KEY: ${{ secrets.DEEPINFRA_STAGE_API_KEY }}
run: pytest tests/e2e -v