-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* improve client state * no comma * update python for unit tests * overwrite it for windows * bump other python versions
- Loading branch information
1 parent
93245ef
commit 880975a
Showing
9 changed files
with
203 additions
and
181 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,40 @@ | ||
name: integration-node-latest | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
TELEMETRY_ENABLED: false | ||
REFLEX_USE_SYSTEM_NODE: true | ||
TELEMETRY_ENABLED: false | ||
REFLEX_USE_SYSTEM_NODE: true | ||
|
||
jobs: | ||
check_latest_node: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python-version: ['3.12'] | ||
split_index: [1, 2] | ||
node-version: ['node'] | ||
fail-fast: false | ||
|
||
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 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: | | ||
poetry run uv pip install pyvirtualdisplay pillow pytest-split | ||
poetry run playwright install --with-deps | ||
- run: | | ||
poetry run pytest tests/test_node_version.py | ||
poetry run pytest tests/integration --splits 2 --group ${{matrix.split_index}} | ||
|
||
check_latest_node: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python-version: ["3.12.8"] | ||
split_index: [1, 2] | ||
node-version: ["node"] | ||
fail-fast: false | ||
|
||
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 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: | | ||
poetry run uv pip install pyvirtualdisplay pillow pytest-split | ||
poetry run playwright install --with-deps | ||
- run: | | ||
poetry run pytest tests/test_node_version.py | ||
poetry run pytest tests/integration --splits 2 --group ${{matrix.split_index}} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,86 @@ | ||
name: check-outdated-dependencies | ||
|
||
on: | ||
push: # This will trigger the action when a pull request is opened or updated. | ||
push: # This will trigger the action when a pull request is opened or updated. | ||
branches: | ||
- 'release/**' # This will trigger the action when any branch starting with "release/" is created. | ||
workflow_dispatch: # Allow manual triggering if needed. | ||
- "release/**" # This will trigger the action when any branch starting with "release/" is created. | ||
workflow_dispatch: # Allow manual triggering if needed. | ||
|
||
jobs: | ||
backend: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/actions/setup_build_env | ||
with: | ||
python-version: '3.9' | ||
run-poetry-install: true | ||
create-venv-at-path: .venv | ||
- uses: ./.github/actions/setup_build_env | ||
with: | ||
python-version: "3.9.21" | ||
run-poetry-install: true | ||
create-venv-at-path: .venv | ||
|
||
- name: Check outdated backend dependencies | ||
run: | | ||
outdated=$(poetry show -oT) | ||
echo "Outdated:" | ||
echo "$outdated" | ||
- name: Check outdated backend dependencies | ||
run: | | ||
outdated=$(poetry show -oT) | ||
echo "Outdated:" | ||
echo "$outdated" | ||
filtered_outdated=$(echo "$outdated" | grep -vE 'pyright|ruff' || true) | ||
if [ ! -z "$filtered_outdated" ]; then | ||
echo "Outdated dependencies found:" | ||
echo "$filtered_outdated" | ||
exit 1 | ||
else | ||
echo "All dependencies are up to date. (pyright and ruff are ignored)" | ||
fi | ||
filtered_outdated=$(echo "$outdated" | grep -vE 'pyright|ruff' || true) | ||
if [ ! -z "$filtered_outdated" ]; then | ||
echo "Outdated dependencies found:" | ||
echo "$filtered_outdated" | ||
exit 1 | ||
else | ||
echo "All dependencies are up to date. (pyright and ruff are ignored)" | ||
fi | ||
frontend: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup_build_env | ||
with: | ||
python-version: '3.10.11' | ||
run-poetry-install: true | ||
create-venv-at-path: .venv | ||
- name: Clone Reflex Website Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: reflex-dev/reflex-web | ||
ref: main | ||
path: reflex-web | ||
- name: Install Requirements for reflex-web | ||
working-directory: ./reflex-web | ||
run: poetry run uv pip install -r requirements.txt | ||
- name: Install additional dependencies for DB access | ||
run: poetry run uv pip install psycopg | ||
- name: Init Website for reflex-web | ||
working-directory: ./reflex-web | ||
run: poetry run reflex init | ||
- name: Run Website and Check for errors | ||
run: | | ||
poetry run bash scripts/integration.sh ./reflex-web dev | ||
- name: Check outdated frontend dependencies | ||
working-directory: ./reflex-web/.web | ||
run: | | ||
raw_outdated=$(/home/runner/.local/share/reflex/bun/bin/bun outdated) | ||
outdated=$(echo "$raw_outdated" | grep -vE '\|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\|' || true) | ||
echo "Outdated:" | ||
echo "$outdated" | ||
# Ignore 3rd party dependencies that are not updated. | ||
filtered_outdated=$(echo "$outdated" | grep -vE 'Package|@chakra-ui|lucide-react|@splinetool/runtime|ag-grid-react|framer-motion|react-markdown|remark-math|remark-gfm|rehype-katex|rehype-raw|remark-unwrap-images' || true) | ||
no_extra=$(echo "$filtered_outdated" | grep -vE '\|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-' || true) | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup_build_env | ||
with: | ||
python-version: "3.10.16" | ||
run-poetry-install: true | ||
create-venv-at-path: .venv | ||
- name: Clone Reflex Website Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: reflex-dev/reflex-web | ||
ref: main | ||
path: reflex-web | ||
- name: Install Requirements for reflex-web | ||
working-directory: ./reflex-web | ||
run: poetry run uv pip install -r requirements.txt | ||
- name: Install additional dependencies for DB access | ||
run: poetry run uv pip install psycopg | ||
- name: Init Website for reflex-web | ||
working-directory: ./reflex-web | ||
run: poetry run reflex init | ||
- name: Run Website and Check for errors | ||
run: | | ||
poetry run bash scripts/integration.sh ./reflex-web dev | ||
- name: Check outdated frontend dependencies | ||
working-directory: ./reflex-web/.web | ||
run: | | ||
raw_outdated=$(/home/runner/.local/share/reflex/bun/bin/bun outdated) | ||
outdated=$(echo "$raw_outdated" | grep -vE '\|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\|' || true) | ||
echo "Outdated:" | ||
echo "$outdated" | ||
# Ignore 3rd party dependencies that are not updated. | ||
filtered_outdated=$(echo "$outdated" | grep -vE 'Package|@chakra-ui|lucide-react|@splinetool/runtime|ag-grid-react|framer-motion|react-markdown|remark-math|remark-gfm|rehype-katex|rehype-raw|remark-unwrap-images' || true) | ||
no_extra=$(echo "$filtered_outdated" | grep -vE '\|\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-' || true) | ||
if [ ! -z "$no_extra" ]; then | ||
echo "Outdated dependencies found:" | ||
echo "$filtered_outdated" | ||
exit 1 | ||
else | ||
echo "All dependencies are up to date. (3rd party packages are ignored)" | ||
fi | ||
if [ ! -z "$no_extra" ]; then | ||
echo "Outdated dependencies found:" | ||
echo "$filtered_outdated" | ||
exit 1 | ||
else | ||
echo "All dependencies are up to date. (3rd party packages are ignored)" | ||
fi |
This file contains 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
Oops, something went wrong.