@@ -158,55 +158,6 @@ jobs:
158158 path : test-results/
159159 retention-days : 5
160160
161- playwright-deploys :
162- needs : [playwright-deploys-precheck]
163- if : github.event_name != 'release' && (github.event_name == 'push' || startsWith(github.head_ref, 'deploy'))
164- # Only allow one `playwright-deploys` job to run at a time. (Independent of branch / PR)
165- # Only one is allowed to run at a time because it is deploying to the same server location.
166- concurrency : playwright-deploys
167- runs-on : ${{ matrix.os }}
168- strategy :
169- matrix :
170- # Matches deploy server python version
171- python-version : ["3.10"]
172- os : [ubuntu-latest]
173- fail-fast : false
174-
175- steps :
176- - uses : actions/checkout@v4
177- - name : Setup py-shiny
178- uses : ./.github/py-shiny/setup
179- with :
180- python-version : ${{ matrix.python-version }}
181-
182- - name : Test that deployable example apps work
183- timeout-minutes : 5 # ~10s locally
184- env :
185- DEPLOY_APPS : " false"
186- run : |
187- make playwright-deploys SUB_FILE=". -vv"
188-
189- - name : Deploy apps and run tests (on `push` or `deploy**` branches)
190- env :
191- DEPLOY_APPS : " true"
192- DEPLOY_CONNECT_SERVER_URL : " https://rsc.radixu.com/"
193- DEPLOY_CONNECT_SERVER_API_KEY : " ${{ secrets.DEPLOY_CONNECT_SERVER_API_KEY }}"
194- DEPLOY_SHINYAPPS_NAME : " ${{ secrets.DEPLOY_SHINYAPPS_NAME }}"
195- DEPLOY_SHINYAPPS_TOKEN : " ${{ secrets.DEPLOY_SHINYAPPS_TOKEN }}"
196- DEPLOY_SHINYAPPS_SECRET : " ${{ secrets.DEPLOY_SHINYAPPS_SECRET }}"
197- timeout-minutes : 30
198- # Given we are waiting for external servers to finish,
199- # we can have many local processes waiting for deployment to finish
200- run : |
201- make playwright-deploys SUB_FILE=". -vv --numprocesses 12"
202-
203- - uses : actions/upload-artifact@v4
204- if : failure()
205- with :
206- name : " playright-deploys-${{ matrix.os }}-${{ matrix.python-version }}-results"
207- path : test-results/
208- retention-days : 5
209-
210161 pypi :
211162 name : " Deploy to PyPI"
212163 runs-on : ubuntu-latest
0 commit comments