Adding Linux Support #203
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Continuous Integration | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
run-tests: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ".[dev]" | |
- name: Run tests | |
run: python -m pytest | |
run-action: | |
name: Test Action | |
runs-on: ubuntu-latest | |
steps: | |
# required because action is unpublished | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Azure login using Federated Credentials | |
uses: azure/login@v2 | |
with: | |
client-id: ${{ vars.AZURE_CLIENT_ID }} | |
tenant-id: ${{ vars.AZURE_TENANT_ID }} | |
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }} | |
- name: Test local action | |
uses: ./ | |
with: | |
azure-ai-project-endpoint: "https://aoai-qyrftgva6obps.services.ai.azure.com/api/projects/proj-qyrftgva6obps" | |
deployment-name: "gpt-4o-mini" | |
data-path: ${{ github.workspace }}/samples/data/dataset-tiny.json | |
agent-ids: "asst_7ZijCsebAPQ7ggOkqJE1uH4G,asst_q1l6UXTwGOa9smSOjRGROCEg" |