-
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.
add workflow to check dependencies on release branch (#4050)
* add workflow to check dependencies on release branch * rename action to follow convention of other actions * update workflow * bump poetry version * relock deps * update check to ignore pyright and ruff * oops, you saw nothing * split dep check in two job * fix frontend dep check * fix stuff * hmm yeah * nope nope nope * sigh * bump js versions for some packages * fix some warnings in tests * fix tests * try some options * try to set asyncio policy * debug dep check * fix attempt for backend dep * clean up output for backend check * run bun outdated on reflex-web to catch most of the packages * fix python version * fix python version * add missing env * fix bun command * fix workdir of frontend check * update packages version * up-pin plotly.js version * add debug ouput * clean frontend dep check output * fix output * fix async tests for redis * relock poetry.lock * Non-async functions do not need pytest_asyncio.fixture * test_state: close StateManagerRedis connection in test to avoid warning --------- Co-authored-by: Masen Furer <m_github@0x26.net>
- Loading branch information
Showing
23 changed files
with
267 additions
and
152 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: check-outdated-dependencies | ||
|
||
on: | ||
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. | ||
|
||
jobs: | ||
backend: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- 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 | ||
|
||
- 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 | ||
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 psycopg2-binary | ||
- 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' || 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 | ||
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
File renamed without changes.
Oops, something went wrong.