Repository navigation
Expand file tree
/
Copy pathcheck_outdated_dependencies.yml
More file actions
65 lines (57 loc) · 2.28 KB
/
Copy pathcheck_outdated_dependencies.yml
File metadata and controls
65 lines (57 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: check-outdated-dependencies
permissions:
contents: read
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-tags: true
fetch-depth: 0
persist-credentials: false
- uses: ./.github/actions/setup_build_env
with:
python-version: "3.13"
run-uv-sync: true
- name: Check outdated backend dependencies
# Not `--script`: that resolves an isolated env, and `uv pip list` would then
# inspect it instead of the project's synced environment.
run: uv run python scripts/check_outdated_deps.py backend
frontend:
runs-on: ubuntu-latest
env:
# reflex-enterprise restricts `reflex run --env prod` to paid tiers but
# exempts reflex's own integration tests via the app harness flag.
APP_HARNESS_FLAG: "true"
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-tags: true
fetch-depth: 0
persist-credentials: false
- uses: ./.github/actions/setup_build_env
with:
python-version: "3.13"
- name: Install Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
- name: Install Requirements for reflex-docs
working-directory: ./docs/app
run: uv sync
- name: Init Website for reflex-docs
working-directory: ./docs/app
run: uv run --active --no-sync reflex init
- name: Run Website and Check for errors
run: |
uv run --active --no-sync bash scripts/integration.sh ./docs/app prod
- name: Check outdated frontend dependencies
# `--script` here: this job only syncs docs/app, and the frontend check reads
# bun and package.json rather than the Python environment.
run: uv run --script scripts/check_outdated_deps.py frontend --web-dir ./docs/app/.web