fix: agentkit checkout and build workflow #7
Workflow file for this run
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: agentkit-check | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| base_sha: | |
| description: "Base commit SHA (optional)" | |
| required: false | |
| head_sha: | |
| description: "Head commit SHA (optional)" | |
| required: false | |
| jobs: | |
| agentkit-launch: | |
| runs-on: ubuntu-latest | |
| env: | |
| VOLCENGINE_ACCESS_KEY: ${{ secrets.VOLCENGINE_ACCESS_KEY }} | |
| VOLCENGINE_SECRET_KEY: ${{ secrets.VOLCENGINE_SECRET_KEY }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install AgentKit CLI | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install agentkit-sdk-python | |
| - name: Generate .env for CI | |
| run: | | |
| cat > .env << 'EOF' | |
| EOF | |
| - name: Run main.py in changed use-case directories | |
| env: | |
| BASE_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.inputs.base_sha }} | |
| HEAD_SHA: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.event.inputs.head_sha }} | |
| run: | | |
| python -m workflow_utils.check_usecases |