Skip to content

Adding files and image support for Slack #628

Adding files and image support for Slack

Adding files and image support for Slack #628

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- develop
workflow_dispatch:
inputs:
update_example_locks:
description: 'Update example lock files before testing'
required: false
type: boolean
default: false
jobs:
update-lock-files:
if: ${{ github.event.inputs.update_example_locks == 'true' }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash -e {0}
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: yaalalabs
repositories: |
agent-kernel
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
run: |
pip install uv
- name: Update example lock files
run: |
python scripts/update_examples_version.py --force-lock
- name: Commit and push changes
run: |
git config --local user.email "agent-kernel-ci[bot]@users.noreply.github.com"
git config --local user.name "agent-kernel-ci[bot]"
git add examples/**/uv.lock
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update example lock files [skip ci]"
git push
fi
run-tests:
needs: [update-lock-files]
if: ${{ always() && (needs.update-lock-files.result == 'success' || needs.update-lock-files.result == 'skipped') }}
uses: ./.github/workflows/test-reusable.yaml
with:
# Skip e2e tests for fork PRs (they don't have access to secrets)
run_e2e_tests: ${{ github.event.pull_request.head.repo.fork != true || github.event_name != 'pull_request' }}
ref: ${{ github.ref }}
secrets:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}