do not set db_url to sqlite by default (#6347) #11923
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: integration-app-harness | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths-ignore: | |
| - "**/*.md" | |
| pull_request: | |
| branches: ["main"] | |
| paths-ignore: | |
| - "**/*.md" | |
| env: | |
| APP_HARNESS_HEADLESS: 1 | |
| PYTHONUNBUFFERED: 1 | |
| permissions: | |
| contents: read | |
| jobs: | |
| integration-app-harness: | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| state_manager: ["redis", "memory"] | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| split_index: [1, 2] | |
| fail-fast: false | |
| runs-on: ubuntu-22.04 | |
| services: | |
| # Label used to access the service container | |
| redis: | |
| image: ${{ matrix.state_manager == 'redis' && 'redis' || '' }} | |
| # Set health checks to wait until redis has started | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| # Maps port 6379 on service container to the host | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-tags: true | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup_build_env | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| run-uv-sync: true | |
| - name: Run app harness tests | |
| env: | |
| REFLEX_REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }} | |
| run: uv run pytest tests/integration --ignore=tests/integration/tests_playwright --reruns 3 -v --maxfail=5 --splits 2 --group ${{matrix.split_index}} | |
| # Playwright tests run in a separate job because the pytest-playwright plugin | |
| # keeps an asyncio event loop running on the main thread for the entire | |
| # session, which is incompatible with pytest-asyncio tests. | |
| integration-app-harness-playwright: | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| state_manager: ["redis", "memory"] | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| fail-fast: false | |
| runs-on: ubuntu-22.04 | |
| services: | |
| redis: | |
| image: ${{ matrix.state_manager == 'redis' && 'redis' || '' }} | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-tags: true | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup_build_env | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| run-uv-sync: true | |
| - name: Install playwright | |
| run: uv run playwright install chromium --only-shell | |
| - name: Run playwright tests | |
| env: | |
| REFLEX_REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }} | |
| run: uv run pytest tests/integration/tests_playwright --reruns 3 -v --maxfail=5 |