From c9f320f357d17313411a6a770a47e4864e7ebec9 Mon Sep 17 00:00:00 2001 From: Elijah Date: Tue, 14 Jan 2025 12:37:13 +0000 Subject: [PATCH] testing workflow --- .github/workflows/integration_tests.yml | 59 +++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 017336ba5..89b25fc10 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -120,6 +120,65 @@ jobs: --branch-name "${{ github.head_ref || github.ref_name }}" --pr-id "${{ github.event.pull_request.id }}" --app-name "counter" + example-nba-proxy: + timeout-minutes: 30 + strategy: + # Prioritize getting more information out of the workflow (even if something fails) + fail-fast: false + matrix: + # Show OS combos first in GUI + os: [ ubuntu-latest, windows-latest ] + python-version: [ "3.9.21", "3.10.16", "3.11.11", "3.12.8", "3.13.1" ] + # Windows is a bit behind on Python version availability in Github + exclude: + - os: windows-latest + python-version: "3.11.11" + - os: windows-latest + python-version: "3.10.16" + - os: windows-latest + python-version: "3.9.21" + include: + - os: windows-latest + python-version: "3.11.9" + - os: windows-latest + python-version: "3.10.11" + - os: windows-latest + python-version: "3.9.13" + + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup_build_env + with: + python-version: ${{ matrix.python-version }} + run-poetry-install: true + create-venv-at-path: .venv + - name: Clone Reflex Examples Repo + uses: actions/checkout@v4 + with: + repository: reflex-dev/reflex-examples + ref: elijah/nba-proxy-app + path: reflex-examples + - name: Install requirements for nba proxy example + working-directory: ./reflex-examples/nba-proxy + run: | + poetry run uv pip install -r requirements.txt + - name: Install additional dependencies for DB access + run: poetry run uv pip install psycopg + - name: Check export --backend-only before init for nba-proxy example + working-directory: ./reflex-examples/nba-proxy + run: | + poetry run reflex export --backend-only + - name: Init Website for nba-proxy example + working-directory: ./reflex-examples/nba-proxy + run: | + poetry run reflex init --loglevel debug + - name: Run Website and Check for errors + run: | + # Check that npm is home + npm -v + poetry run bash scripts/integration.sh ./reflex-examples/nba-proxy dev + reflex-web: strategy: fail-fast: false