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