@@ -133,7 +133,8 @@ jobs:
133133
134134 unit_test_suite :
135135 name : unit:${{ matrix.environment }}:${{ matrix.os }}
136- needs : [pre_commit, setup, pixi_lock]
136+ needs : [setup, pixi_lock]
137+ # needs: [pre_commit, setup, pixi_lock] # HACK: Should be added back
137138 runs-on : ${{ matrix.os }}
138139 if : needs.setup.outputs.code_change == 'true'
139140 strategy :
@@ -145,6 +146,12 @@ jobs:
145146 with :
146147 environments : ${{ matrix.environment }}
147148 opengl : true
149+ - name : PATCH # HACK: Should never be merged into main
150+ run : |
151+ pixi shell -e ${{ matrix.environment }}
152+ bash scripts/no_pandas_import.sh
153+ pip install git+https://github.com/holoviz/holoviews@improve_nopandas
154+ pip uninstall pandas -y
148155 - name : Test unit
149156 run : |
150157 pixi run -e ${{ matrix.environment }} test-unit $COV
@@ -162,78 +169,78 @@ jobs:
162169 with :
163170 token : ${{ secrets.CODECOV_TOKEN }}
164171
165- ui_test_suite :
166- name : ui:${{ matrix.environment }}:${{ matrix.os }}
167- needs : [pre_commit, setup, pixi_lock]
168- runs-on : ${{ matrix.os }}
169- if : needs.setup.outputs.code_change == 'true' || needs.setup.outputs.doc_change == 'true'
170- strategy :
171- fail-fast : false
172- matrix :
173- os : ["ubuntu-latest", "macos-latest", "windows-latest"]
174- environment : ["test-ui"]
175- timeout-minutes : 60
176- env :
177- PANEL_LOG_LEVEL : info
178- OAUTH_COOKIE_SECRET : ${{ secrets.OAUTH_COOKIE_SECRET }}
179- OAUTH_ENCRYPTION_KEY : ${{ secrets.OAUTH_ENCRYPTION_KEY }}
180- AUTH0_PORT : " 5701"
181- AUTH0_OAUTH_KEY : ${{ secrets.AUTH0_OAUTH_KEY }}
182- AUTH0_OAUTH_SECRET : ${{ secrets.AUTH0_OAUTH_SECRET }}
183- AUTH0_OAUTH_EXTRA_PARAMS : ${{ secrets.AUTH0_OAUTH_EXTRA_PARAMS }}
184- AUTH0_OAUTH_USER : ${{ secrets.AUTH0_OAUTH_USER }}
185- AUTH0_OAUTH_PASSWORD : ${{ secrets.AUTH0_OAUTH_PASSWORD }}
186- OKTA_PORT : " 5703"
187- OKTA_OAUTH_KEY : ${{ secrets.OKTA_OAUTH_KEY }}
188- OKTA_OAUTH_SECRET : ${{ secrets.OKTA_OAUTH_SECRET }}
189- OKTA_OAUTH_EXTRA_PARAMS : ${{ secrets.OKTA_OAUTH_EXTRA_PARAMS }}
190- OKTA_OAUTH_USER : ${{ secrets.OKTA_OAUTH_USER }}
191- OKTA_OAUTH_PASSWORD : ${{ secrets.OKTA_OAUTH_PASSWORD }}
192- steps :
193- - uses : holoviz-dev/holoviz_tasks/pixi_install@v0
194- with :
195- environments : ${{ matrix.environment }}
196- id : install
197- - name : Build pyodide wheels
198- run : pixi run -e test-ui "python ./scripts/build_pyodide_wheels.py"
199- - name : Launch JupyterLab
200- shell : pixi run -e test-ui bash -e {0}
201- run : |
202- jupyter server extension enable panel.io.jupyter_server_extension --sys-prefix
203- (jupyter lab --config panel/tests/ui/jupyter_server_test_config.py --port 8887 > /tmp/jupyterlab_server.log 2>&1) &
204- - name : Build JupyterLite
205- shell : pixi run -e test-ui bash -e {0}
206- run : pixi run -e lite lite-build
207- - name : Wait for JupyterLab
208- 209- with :
210- resource : http-get://localhost:8887/lab
211- timeout : 180000
212- - name : Check if auth should run
213- if : ' !github.event.pull_request.head.repo.fork'
214- run : |
215- echo "PANEL_TEST_AUTH=1" >> $GITHUB_ENV
216- - name : Test UI
217- run : |
218- # Create a .uicoveragerc file to set the concurrency library to greenlet
219- # https://github.com/microsoft/playwright-python/issues/313
220- echo "[run]\nconcurrency = greenlet" > .uicoveragerc
221- FAIL="--screenshot only-on-failure --full-page-screenshot --output ui_screenshots --tracing retain-on-failure"
222- pixi run -e ${{ matrix.environment }} test-ui --jupyter $COV --cov-config=.uicoveragerc $FAIL
223- - uses : actions/upload-artifact@v4
224- if : always()
225- with :
226- name : ui_screenshots_${{ runner.os }}
227- path : ./ui_screenshots
228- if-no-files-found : ignore
229- - name : Stop JupyterLab
230- if : always()
231- shell : pixi run -e test-ui bash -e {0}
232- run : |
233- jupyter lab stop 8887 || true
234- - uses : codecov/codecov-action@v4
235- with :
236- token : ${{ secrets.CODECOV_TOKEN }}
172+ # ui_test_suite:
173+ # name: ui:${{ matrix.environment }}:${{ matrix.os }}
174+ # needs: [pre_commit, setup, pixi_lock]
175+ # runs-on: ${{ matrix.os }}
176+ # if: needs.setup.outputs.code_change == 'true' || needs.setup.outputs.doc_change == 'true'
177+ # strategy:
178+ # fail-fast: false
179+ # matrix:
180+ # os: ["ubuntu-latest", "macos-latest", "windows-latest"]
181+ # environment: ["test-ui"]
182+ # timeout-minutes: 60
183+ # env:
184+ # PANEL_LOG_LEVEL: info
185+ # OAUTH_COOKIE_SECRET: ${{ secrets.OAUTH_COOKIE_SECRET }}
186+ # OAUTH_ENCRYPTION_KEY: ${{ secrets.OAUTH_ENCRYPTION_KEY }}
187+ # AUTH0_PORT: "5701"
188+ # AUTH0_OAUTH_KEY: ${{ secrets.AUTH0_OAUTH_KEY }}
189+ # AUTH0_OAUTH_SECRET: ${{ secrets.AUTH0_OAUTH_SECRET }}
190+ # AUTH0_OAUTH_EXTRA_PARAMS: ${{ secrets.AUTH0_OAUTH_EXTRA_PARAMS }}
191+ # AUTH0_OAUTH_USER: ${{ secrets.AUTH0_OAUTH_USER }}
192+ # AUTH0_OAUTH_PASSWORD: ${{ secrets.AUTH0_OAUTH_PASSWORD }}
193+ # OKTA_PORT: "5703"
194+ # OKTA_OAUTH_KEY: ${{ secrets.OKTA_OAUTH_KEY }}
195+ # OKTA_OAUTH_SECRET: ${{ secrets.OKTA_OAUTH_SECRET }}
196+ # OKTA_OAUTH_EXTRA_PARAMS: ${{ secrets.OKTA_OAUTH_EXTRA_PARAMS }}
197+ # OKTA_OAUTH_USER: ${{ secrets.OKTA_OAUTH_USER }}
198+ # OKTA_OAUTH_PASSWORD: ${{ secrets.OKTA_OAUTH_PASSWORD }}
199+ # steps:
200+ # - uses: holoviz-dev/holoviz_tasks/pixi_install@v0
201+ # with:
202+ # environments: ${{ matrix.environment }}
203+ # id: install
204+ # - name: Build pyodide wheels
205+ # run: pixi run -e test-ui "python ./scripts/build_pyodide_wheels.py"
206+ # - name: Launch JupyterLab
207+ # shell: pixi run -e test-ui bash -e {0}
208+ # run: |
209+ # jupyter server extension enable panel.io.jupyter_server_extension --sys-prefix
210+ # (jupyter lab --config panel/tests/ui/jupyter_server_test_config.py --port 8887 > /tmp/jupyterlab_server.log 2>&1) &
211+ # - name: Build JupyterLite
212+ # shell: pixi run -e test-ui bash -e {0}
213+ # run: pixi run -e lite lite-build
214+ # - name: Wait for JupyterLab
215+ 216+ # with:
217+ # resource: http-get://localhost:8887/lab
218+ # timeout: 180000
219+ # - name: Check if auth should run
220+ # if: '!github.event.pull_request.head.repo.fork'
221+ # run: |
222+ # echo "PANEL_TEST_AUTH=1" >> $GITHUB_ENV
223+ # - name: Test UI
224+ # run: |
225+ # # Create a .uicoveragerc file to set the concurrency library to greenlet
226+ # # https://github.com/microsoft/playwright-python/issues/313
227+ # echo "[run]\nconcurrency = greenlet" > .uicoveragerc
228+ # FAIL="--screenshot only-on-failure --full-page-screenshot --output ui_screenshots --tracing retain-on-failure"
229+ # pixi run -e ${{ matrix.environment }} test-ui --jupyter $COV --cov-config=.uicoveragerc $FAIL
230+ # - uses: actions/upload-artifact@v4
231+ # if: always()
232+ # with:
233+ # name: ui_screenshots_${{ runner.os }}
234+ # path: ./ui_screenshots
235+ # if-no-files-found: ignore
236+ # - name: Stop JupyterLab
237+ # if: always()
238+ # shell: pixi run -e test-ui bash -e {0}
239+ # run: |
240+ # jupyter lab stop 8887 || true
241+ # - uses: codecov/codecov-action@v4
242+ # with:
243+ # token: ${{ secrets.CODECOV_TOKEN }}
237244
238245 core_test_suite :
239246 name : core:${{ matrix.environment }}:${{ matrix.os }}
@@ -254,29 +261,30 @@ jobs:
254261 run : |
255262 pixi run -e ${{ matrix.environment }} test-unit
256263
257- type_test_suite :
258- name : type:${{ matrix.environment }}:${{ matrix.os }}
259- needs : [pre_commit, setup, pixi_lock]
260- runs-on : ${{ matrix.os }}
261- if : needs.setup.outputs.code_change == 'true'
262- strategy :
263- fail-fast : false
264- matrix :
265- os : ["ubuntu-latest"]
266- environment : ["test-type"]
267- timeout-minutes : 30
268- steps :
269- - uses : holoviz-dev/holoviz_tasks/pixi_install@v0
270- with :
271- environments : ${{ matrix.environment }}
272- install : false
273- - name : Test Type
274- run : |
275- pixi run -e ${{ matrix.environment }} test-type
264+ # type_test_suite:
265+ # name: type:${{ matrix.environment }}:${{ matrix.os }}
266+ # needs: [pre_commit, setup, pixi_lock]
267+ # runs-on: ${{ matrix.os }}
268+ # if: needs.setup.outputs.code_change == 'true'
269+ # strategy:
270+ # fail-fast: false
271+ # matrix:
272+ # os: ["ubuntu-latest"]
273+ # environment: ["test-type"]
274+ # timeout-minutes: 30
275+ # steps:
276+ # - uses: holoviz-dev/holoviz_tasks/pixi_install@v0
277+ # with:
278+ # environments: ${{ matrix.environment }}
279+ # install: false
280+ # - name: Test Type
281+ # run: |
282+ # pixi run -e ${{ matrix.environment }} test-type
276283
277284 result_test_suite :
278285 name : result:test
279- needs : [unit_test_suite, ui_test_suite, core_test_suite, type_test_suite]
286+ needs : [unit_test_suite, core_test_suite]
287+ # needs: [unit_test_suite, ui_test_suite, core_test_suite, type_test_suite] # HACK: ADD BACK
280288 if : always()
281289 runs-on : ubuntu-latest
282290 steps :
0 commit comments