|
94 | 94 | # Check that npm is home |
95 | 95 | npm -v |
96 | 96 | poetry run bash scripts/integration.sh ./reflex-examples/counter dev |
97 | | - - name: Measure and upload .web size |
98 | | - run: |
99 | | - poetry run python benchmarks/benchmark_web_size.py --os "${{ matrix.os }}" |
100 | | - --python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}" |
101 | | - --pr-id "${{ github.event.pull_request.id }}" |
102 | | - --branch-name "${{ github.head_ref || github.ref_name }}" |
103 | | - --path ./reflex-examples/counter/.web |
104 | | - --app-name "counter" |
105 | | - - name: Install hyperfine |
106 | | - run: cargo install hyperfine |
107 | | - - name: Benchmark imports |
108 | | - working-directory: ./reflex-examples/counter |
109 | | - run: hyperfine --warmup 3 "export POETRY_VIRTUALENVS_PATH=../../.venv; poetry run python counter/counter.py" --show-output --export-json "${{ env.OUTPUT_FILE }}" --shell bash |
110 | | - - name: Upload Benchmarks |
111 | | - run: |
112 | | - poetry run python benchmarks/benchmark_imports.py --os "${{ matrix.os }}" |
113 | | - --python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}" |
114 | | - --benchmark-json "./reflex-examples/counter/${{ env.OUTPUT_FILE }}" |
115 | | - --branch-name "${{ github.head_ref || github.ref_name }}" --pr-id "${{ github.event.pull_request.id }}" |
116 | | - --app-name "counter" |
117 | 97 | - name: Install requirements for nba proxy example |
118 | 98 | working-directory: ./reflex-examples/nba-proxy |
119 | 99 | run: | |
@@ -174,12 +154,6 @@ jobs: |
174 | 154 | # Check that npm is home |
175 | 155 | npm -v |
176 | 156 | poetry run bash scripts/integration.sh ./reflex-web prod |
177 | | - - name: Measure and upload .web size |
178 | | - run: |
179 | | - poetry run python benchmarks/benchmark_web_size.py --os "${{ matrix.os }}" |
180 | | - --python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}" |
181 | | - --pr-id "${{ github.event.pull_request.id }}" --branch-name "${{ github.head_ref || github.ref_name }}" |
182 | | - --app-name "reflex-web" --path ./reflex-web/.web |
183 | 157 |
|
184 | 158 | rx-shout-from-template: |
185 | 159 | strategy: |
@@ -243,9 +217,3 @@ jobs: |
243 | 217 | # Check that npm is home |
244 | 218 | npm -v |
245 | 219 | poetry run bash scripts/integration.sh ./reflex-web prod |
246 | | - - name: Measure and upload .web size |
247 | | - run: |
248 | | - poetry run python benchmarks/benchmark_web_size.py --os "${{ matrix.os }}" |
249 | | - --python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}" |
250 | | - --pr-id "${{ github.event.pull_request.id }}" --branch-name "${{ github.head_ref || github.ref_name }}" |
251 | | - --app-name "reflex-web" --path ./reflex-web/.web |
0 commit comments