> ## Documentation Index
> Fetch the complete documentation index at: https://docs.askui.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Github Actions

> This page explains how to set up **AskUI with GitHub Actions**, including dependency setup, environment variables, test execution, and optional report generation.

## GitHub Actions

<Tip>
  Automate your AskUI workflows with GitHub Actions in just a few simple steps!
</Tip>

### 1. Project Setup

Place your AskUI Python scripts in a directory at the root of your repository (e.g., `tests` or `automation`).

> **Note:** The directory structure may vary based on your project organization.

### 2. Pipeline Configuration

<Steps>
  <Step title="Configure Python Environment">
    Set up Python 3.10 or higher in your workflow
  </Step>

  <Step title="Install Dependencies">
    ```bash theme={null}
    pip install askui
    ```
  </Step>

  <Step title="Configure Environment Variables">
    Add the following required variables:

    * `ASKUI_WORKSPACE_ID`
    * `ASKUI_TOKEN`

    Optional:

    * `ANTHROPIC_API_KEY` - Required if using Anthropic models
  </Step>

  <Step title="Run Tests">
    ```bash theme={null}
    python -m pytest tests/
    # Or run your scripts directly
    python your_automation_script.py
    ```
  </Step>

  <Step title="Optional Steps">
    * Set up AskUI Agent OS as a service
    * Generate test reports with pytest-html
    * Deploy or distribute reports
  </Step>
</Steps>

### Example Implementation

Here's a sample GitHub Actions workflow file (`.github/workflows/askui-automation.yml`):
