Skip to content

Merge branch 'main' of https://github.com/everettVT/daft-structured-o… #19

Merge branch 'main' of https://github.com/everettVT/daft-structured-o…

Merge branch 'main' of https://github.com/everettVT/daft-structured-o… #19

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
run_integration:
description: "Run integration tests"
required: false
default: false
type: boolean
target_env:
description: "Target environment for integration tests"
required: false
default: "env1"
type: choice
options:
- env1
- env2
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Sync dependencies
run: uv sync
- name: Run unit tests
run: uv run pytest -q -m "not integration"
integration:
runs-on: ubuntu-latest
needs: unit
environment: openai
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Sync dependencies
run: uv sync
- name: Run integration tests (openai)
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_BASE_URL: ${{ env.OPENAI_BASE_URL }}
MODEL_ID: ${{ env.MODEL_ID }}
run: |
uv run pytest -q -m integration