Repository navigation
75 lines (72 loc) · 2.67 KB
/
Copy pathpython-versions.yml
File metadata and controls
75 lines (72 loc) · 2.67 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
66
67
68
69
70
71
72
73
74
75
name: Demo checks
on: [push, pull_request]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.13", "3.14"]
env:
UV_PYTHON: ${{ matrix.python-version }}
UV_PYTHON_DOWNLOADS: never
UV_CACHE_DIR: ${{ github.workspace }}/.cache/uv
REFLEX_DIR: ${{ github.workspace }}/.cache/reflex
REFLEX_TELEMETRY_ENABLED: "false"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v6
with:
version: "0.12.19"
enable-cache: true
- name: Install locked dependencies without source drift
run: |
make setup
git diff --exit-code -- reflex.lock .gitignore
test -z "$(git status --porcelain --untracked-files=all -- reflex.lock)"
- name: Lint, format check, and behavioral tests
run: make check
- name: Build production frontend with synthetic data only
run: make build
- name: Verify frontend lock stability
run: |
git diff --exit-code -- reflex.lock .gitignore
test -z "$(git status --porcelain --untracked-files=all -- reflex.lock)"
- uses: actions/setup-node@v4
if: matrix.python-version == '3.13'
with:
node-version: "22.23.2"
cache: npm
- name: Install browser-test tooling
if: matrix.python-version == '3.13'
run: |
npm ci --ignore-scripts
npx playwright install --with-deps chromium
- name: Production browser and accessibility regressions
if: matrix.python-version == '3.13'
shell: bash
run: |
mkdir -p .scratch
setsid uv run --frozen --no-sync reflex run --env prod --backend-host 127.0.0.1 --frontend-port 3157 > .scratch/server.log 2>&1 &
server_pid=$!
trap 'kill -- -"$server_pid" 2>/dev/null || true' EXIT
curl --fail --silent --retry 30 --retry-connrefused --retry-delay 1 http://127.0.0.1:3157/ > /dev/null
kill -0 "$server_pid"
PHISSION_URL=http://127.0.0.1:3157 npm run test:browser
git diff --exit-code -- reflex.lock
test -z "$(git status --porcelain --untracked-files=all -- reflex.lock)"
- uses: actions/upload-artifact@v4
if: always() && matrix.python-version == '3.13'
with:
name: phission-browser-evidence
path: |
.scratch/browser-validation/
.scratch/server.log
include-hidden-files: true
if-no-files-found: ignore
retention-days: 30