forked from posit-dev/py-shiny
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into machow-feat-narwhals
* main: CI(deploy): Add more installation configs to surface failure cause (posit-dev#1658) `Chat.messages()` no longer trims messages by default (posit-dev#1657) tests(controllers): Split _controls.py into separate files (posit-dev#1652) Chat tweaks (posit-dev#1607) docs: Add modal_show/remove examples (posit-dev#1628) Delay sending of chat UI messages until reactive graph is flushed (posit-dev#1593) ci(remove future behavior warning): Set the `asyncio_default_fixture_loop_scope` to `fixture` (posit-dev#1655) bug: Verify mypy can run on CI (posit-dev#1650) Fix CI install failures on Windows (posit-dev#1651) Quartodoc 0.7.6 (posit-dev#1636) Allow `@chat.transform_assistant_response` function to return `None` (posit-dev#1641) feat: Support templates with `_template.json` metadata (posit-dev#1631) Fix KeyError when serving static files (posit-dev#1648) tests(navsets): Add navsets kitchensink tests (posit-dev#1602) Change default claude model to 3.5 sonnet
- Loading branch information
Showing
172 changed files
with
9,232 additions
and
8,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,63 @@ jobs: | |
playwright-deploys: | ||
# Only allow one `playwright-deploys` job to run at a time. (Independent of branch / PR) | ||
# Only one is allowed to run at a time because it is deploying to the same server location. | ||
concurrency: playwright-deploys | ||
concurrency: playwright-deploys-${{ matrix.config.name }} | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.config.name }} | ||
strategy: | ||
matrix: | ||
# Matches deploy server python version | ||
python-version: ["3.10"] | ||
os: [ubuntu-latest] | ||
config: | ||
# Released server, shiny, and rsconnect | ||
- name: "pypi-shiny-rsconnect-connect" | ||
released_connect_server: true | ||
pypi_shiny: true | ||
pypi_rsconnect: true | ||
base_test_dir: "./tests/playwright/deploys/express-page_sidebar" | ||
app_name: "pypi-shiny-rsconnect" | ||
test_shinyappsio: false | ||
|
||
# Released shiny and rsconnect | ||
# Dev server | ||
- name: "pypi-shiny-rsconnect-dogfood" | ||
released_connect_server: false | ||
pypi_shiny: true | ||
pypi_rsconnect: true | ||
base_test_dir: "./tests/playwright/deploys/express-page_sidebar" | ||
app_name: "pypi-shiny-rsconnect" | ||
test_shinyappsio: false | ||
|
||
# Released shiny | ||
# Dogfood server and rsconnect | ||
- name: "pypi-shiny-dev-rsconnect-dogfood" | ||
released_connect_server: false | ||
pypi_shiny: true | ||
pypi_rsconnect: false | ||
base_test_dir: "./tests/playwright/deploys/express-page_sidebar" | ||
app_name: "pypi-shiny-dev-rsconnect" | ||
test_shinyappsio: false | ||
|
||
# GitHub shiny v1.0.0 - test if github packages can be installed | ||
# Dogfood server and rsconnect | ||
- name: "github-shiny-dev-rsconnect-dogfood" | ||
released_connect_server: false | ||
github_shiny: true | ||
pypi_shiny: false | ||
pypi_rsconnect: false | ||
base_test_dir: "./tests/playwright/deploys/express-page_sidebar" | ||
app_name: "pypi-shiny-dev-rsconnect" | ||
test_shinyappsio: false | ||
|
||
# Dev server, shiny, and rsconnect | ||
- name: "dev-shiny-rsconnect-dogfood" | ||
released_connect_server: false | ||
pypi_shiny: false | ||
pypi_rsconnect: false | ||
base_test_dir: "./tests/playwright/deploys" | ||
test_shinyappsio: true | ||
|
||
fail-fast: false | ||
|
||
steps: | ||
|
@@ -27,7 +77,24 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install rsconnect | ||
- name: Install pypi shiny and htmltools (uninstall GitHub versions) | ||
if: ${{ matrix.config.pypi_shiny }} | ||
run: | | ||
uv pip uninstall shiny htmltools | ||
uv pip install shiny htmltools | ||
- name: Install GitHub [email protected] and [email protected] (uninstall PyPI versions) | ||
if: ${{ matrix.config.github_shiny }} | ||
run: | | ||
uv pip uninstall shiny htmltools | ||
uv pip install "htmltools @ git+https://github.com/posit-dev/[email protected]" "shiny @ git+https://github.com/posit-dev/[email protected]" | ||
- name: Install rsconnect (PyPI) | ||
if: ${{ matrix.config.pypi_rsconnect }} | ||
run: | | ||
uv pip install rsconnect | ||
- name: Install rsconnect (GitHub) | ||
if: ${{ ! matrix.config.pypi_rsconnect }} | ||
run: | | ||
make ci-install-rsconnect | ||
|
@@ -36,25 +103,27 @@ jobs: | |
env: | ||
DEPLOY_APPS: "false" | ||
run: | | ||
make playwright-deploys SUB_FILE=". -vv" | ||
make playwright-deploys TEST_FILE="${{ matrix.config.base_test_dir }} -vv" | ||
- name: Deploy apps and run tests (on `push` or `deploy**` branches) | ||
env: | ||
DEPLOY_APPS: "true" | ||
DEPLOY_CONNECT_SERVER_URL: "https://rsc.radixu.com/" | ||
DEPLOY_CONNECT_SERVER_API_KEY: "${{ secrets.DEPLOY_CONNECT_SERVER_API_KEY }}" | ||
DEPLOY_SHINYAPPS_NAME: "${{ secrets.DEPLOY_SHINYAPPS_NAME }}" | ||
DEPLOY_SHINYAPPS_TOKEN: "${{ secrets.DEPLOY_SHINYAPPS_TOKEN }}" | ||
DEPLOY_SHINYAPPS_SECRET: "${{ secrets.DEPLOY_SHINYAPPS_SECRET }}" | ||
DEPLOY_CONNECT_SERVER_URL: "${{ (matrix.config.released_connect_server && 'https://connect.posit.it/') || 'https://rsc.radixu.com/' }}" | ||
DEPLOY_CONNECT_SERVER_API_KEY: "${{ (matrix.config.released_connect_server && secrets.DEPLOY_CONNECT_POSIT_SERVER_API_KEY) || secrets.DEPLOY_CONNECT_SERVER_API_KEY }}" | ||
DEPLOY_SHINYAPPS_NAME: "${{ matrix.config.test_shinyappsio && matrix.config.shinyapps_name }}" | ||
DEPLOY_SHINYAPPS_TOKEN: "${{ matrix.config.test_shinyappsio && matrix.config.shinyapps_token }}" | ||
DEPLOY_SHINYAPPS_SECRET: "${{ matrix.config.test_shinyappsio && matrix.config.shinyapps_secret }}" | ||
EXPRESS_PAGE_SIDEBAR_NAME: "${{ matrix.config.app_name }}" | ||
DEPLOY_GITHUB_REQUIREMENTS_TXT: "${{ !matrix.config.pypi_shiny }}" | ||
timeout-minutes: 30 | ||
# Given we are waiting for external servers to finish, | ||
# we can have many local processes waiting for deployment to finish | ||
run: | | ||
make playwright-deploys SUB_FILE=". -vv --numprocesses 12" | ||
make playwright-deploys TEST_FILE="${{ matrix.config.base_test_dir }} -vv --numprocesses 12" | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: "playright-deploys-${{ matrix.os }}-${{ matrix.python-version }}-results" | ||
path: test-results/ | ||
retention-days: 5 | ||
# - uses: actions/upload-artifact@v4 | ||
# if: failure() | ||
# with: | ||
# name: "playright-deploys-${{ matrix.os }}-${{ matrix.python-version }}-results" | ||
# path: test-results/ | ||
# retention-days: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16 | ||
v18 |
Oops, something went wrong.