Spaces:
Sleeping
Sleeping
Download .github/archive/python-sdk.yml from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 2.07 kB
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/.github/archive/python-sdk.yml
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/.github/archive/python-sdk.yml
-
curl -L -o python-sdk.yml https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/.github/archive/python-sdk.yml
2.07 kB
| name: Run Python SDK E2E Tests | |
| on: [] | |
| env: | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }} | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
| HOST: ${{ secrets.HOST }} | |
| LLAMAPARSE_API_KEY: ${{ secrets.LLAMAPARSE_API_KEY }} | |
| NUM_WORKERS_PER_QUEUE: ${{ secrets.NUM_WORKERS_PER_QUEUE }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| PLAYWRIGHT_MICROSERVICE_URL: ${{ secrets.PLAYWRIGHT_MICROSERVICE_URL }} | |
| PORT: ${{ secrets.PORT }} | |
| REDIS_URL: ${{ secrets.REDIS_URL }} | |
| SUPABASE_ANON_TOKEN: ${{ secrets.SUPABASE_ANON_TOKEN }} | |
| SUPABASE_SERVICE_TOKEN: ${{ secrets.SUPABASE_SERVICE_TOKEN }} | |
| SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
| TEST_API_KEY: ${{ secrets.TEST_API_KEY }} | |
| HDX_NODE_BETA_MODE: 1 | |
| jobs: | |
| build: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| strategy: | |
| matrix: | |
| python-version: ["3.10"] | |
| services: | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20" | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: Install dependencies for API | |
| run: pnpm install | |
| working-directory: ./apps/api | |
| - name: Start the application | |
| run: npm start & | |
| working-directory: ./apps/api | |
| id: start_app | |
| - name: Start workers | |
| run: npm run workers & | |
| working-directory: ./apps/api | |
| id: start_workers | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| working-directory: ./apps/python-sdk | |
| - name: Run E2E tests for Python SDK | |
| run: | | |
| python -m pytest firecrawl/__tests__/e2e/v2 | |
| working-directory: ./apps/python-sdk | |