Rename project references from Haxen to AgentField (#4) #17
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: Python SDK CI | |
| on: | |
| pull_request: | |
| paths: | |
| - 'sdk/python/**' | |
| - '.github/workflows/sdk-python.yml' | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'sdk/python/**' | |
| - '.github/workflows/sdk-python.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| working-directory: sdk/python | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install .[dev] | |
| pip install ruff pytest | |
| - name: Lint | |
| working-directory: sdk/python | |
| run: | | |
| ruff check . | |
| ruff format --check . | |
| - name: Run tests | |
| working-directory: sdk/python | |
| run: pytest | |
| # Summary job that depends on all critical checks | |
| required-checks: | |
| name: All Required Checks Passed | |
| runs-on: ubuntu-latest | |
| needs: [lint-and-test] | |
| if: always() | |
| steps: | |
| - name: Check all jobs | |
| run: | | |
| if [ "${{ needs.lint-and-test.result }}" != "success" ]; then | |
| echo "Required checks failed" | |
| exit 1 | |
| fi | |
| echo "All required checks passed successfully" |