Tool Availability #5
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: Tool Availability | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: tool-availability-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| full-tool-availability: | |
| name: Full tool availability | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| environment: test_keys | |
| env: | |
| API_KEY: ${{ secrets.API_KEY }} | |
| API_BASE: ${{ secrets.API_BASE }} | |
| MODEL_NAME: ${{ secrets.MODEL_NAME }} | |
| SERPER_KEY: ${{ secrets.SERPER_KEY }} | |
| JINA_KEY: ${{ secrets.JINA_KEY }} | |
| MINERU_TOKEN: ${{ secrets.MINERU_TOKEN }} | |
| PYTHONDONTWRITEBYTECODE: "1" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Verify required secrets are configured | |
| run: | | |
| python - <<'PY' | |
| import os | |
| missing = [ | |
| name for name in ( | |
| "API_KEY", | |
| "API_BASE", | |
| "MODEL_NAME", | |
| "SERPER_KEY", | |
| "JINA_KEY", | |
| "MINERU_TOKEN", | |
| ) | |
| if not os.getenv(name) | |
| ] | |
| if missing: | |
| raise SystemExit("Missing required GitHub Actions secrets: " + ", ".join(missing)) | |
| print("Required secrets are configured.") | |
| PY | |
| - name: Run full tool availability check | |
| run: | | |
| env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY \ | |
| -u http_proxy -u https_proxy -u all_proxy \ | |
| python tests/test_tool_availability.py |