|
@@ -100,7 +100,7 @@ jobs:
|
|
|
npm -v
|
|
|
poetry run bash scripts/integration.sh ./reflex-examples/counter dev
|
|
|
- name: Measure and upload .web size
|
|
|
- if: ${{ env.DATABASE_URL && github.event.pull_request.merged == true }}
|
|
|
+ if: ${{ env.DATABASE_URL}}
|
|
|
run:
|
|
|
poetry run python scripts/benchmarks/benchmark_reflex_size.py --os "${{ matrix.os }}"
|
|
|
--python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}"
|
|
@@ -108,14 +108,12 @@ jobs:
|
|
|
--branch-name "${{ github.head_ref || github.ref_name }}"
|
|
|
--measurement-type "counter-app-dot-web" --path ./reflex-examples/counter/.web
|
|
|
- name: Install hyperfine
|
|
|
- if: github.event.pull_request.merged == true
|
|
|
- run: cargo install --locked hyperfine
|
|
|
+ run: cargo install hyperfine
|
|
|
- name: Benchmark imports
|
|
|
- if: github.event.pull_request.merged == true
|
|
|
working-directory: ./reflex-examples/counter
|
|
|
run: hyperfine --warmup 3 "export POETRY_VIRTUALENVS_PATH=../../.venv; poetry run python counter/counter.py" --show-output --export-json "${{ env.OUTPUT_FILE }}" --shell bash
|
|
|
- name: Upload Benchmarks
|
|
|
- if : ${{ env.DATABASE_URL && github.event.pull_request.merged == true }}
|
|
|
+ if : ${{ env.DATABASE_URL }}
|
|
|
run:
|
|
|
poetry run python scripts/benchmarks/benchmark_imports.py --os "${{ matrix.os }}"
|
|
|
--python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}"
|
|
@@ -166,7 +164,7 @@ jobs:
|
|
|
npm -v
|
|
|
poetry run bash scripts/integration.sh ./reflex-web prod
|
|
|
- name: Measure and upload .web size
|
|
|
- if: ${{ env.DATABASE_URL && github.event.pull_request.merged == true }}
|
|
|
+ if: ${{ env.DATABASE_URL}}
|
|
|
run:
|
|
|
poetry run python scripts/benchmarks/benchmark_reflex_size.py --os "${{ matrix.os }}"
|
|
|
--python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}"
|