E2E Tests (fal) #2411
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: E2E Tests (fal) | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "projects/fal/**" | |
| - "projects/fal_client/**" | |
| - ".github/workflows/fal-e2e-tests.yml" | |
| pull_request: | |
| types: [assigned, opened, synchronize, reopened] | |
| paths: | |
| - "projects/fal/**" | |
| - "projects/fal_client/**" | |
| - ".github/workflows/fal-e2e-tests.yml" | |
| schedule: | |
| - cron: "30 5 * * *" # every day at 5:30 UTC | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| e2e: | |
| name: e2e (${{ matrix.os }}, py ${{ matrix.python }}, ${{ matrix.deps }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| deps: ["pydantic==1.10.18", "pydantic==2.13.3"] | |
| python: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| # pydantic 1.10.18 runs on the oldest supported interpreter only | |
| exclude: | |
| - deps: "pydantic==1.10.18" | |
| python: "3.11" | |
| - deps: "pydantic==1.10.18" | |
| python: "3.12" | |
| - deps: "pydantic==1.10.18" | |
| python: "3.13" | |
| - deps: "pydantic==1.10.18" | |
| python: "3.14" | |
| include: | |
| - os: windows-2022 | |
| deps: "pydantic==2.13.3" | |
| python: "3.12" | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| cache: pip | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip wheel | |
| pip install -e 'projects/fal[test]' ${{ matrix.deps }} | |
| pip install -e 'projects/fal_client[test]' | |
| - name: Run e2e tests | |
| env: | |
| FAL_KEY: ${{ secrets.FAL_KEY_PROD }} | |
| FAL_GRPC_HOST: api.alpha.fal.ai | |
| FAL_REST_HOST: rest.fal.ai | |
| FAL_RUN_HOST: fal.run | |
| run: pytest -n auto -v projects/fal/tests/e2e |