Skip to content

Commit 0de93ad

Browse files
committed
Merge branch 'main' into update_row_selection
* main: (35 commits) test: Speed up tests by using single page. Do not attempt deploys job unless conditions are valid (#1197) ci: Run `playwright-examples` on Python 3.12 as well (#1195) Shiny preset style updates and nudges (#1176) tests: Upload trace on failed tests (#1196) Fix datetime input in airmass example app (#1194) Better docs for `render.download` (#1193) Render `shiny.min.css` using `bs_theme()` (#1191) Fix `express.ui.update_date` and`express.ui.update_text` links (#1192) Use `cast()` for asgiref types only when type checking (#1190) Remove uvicorn and click dependencies in Emscripten (#1187) Remove asgiref run-time dependency (#1183) Install dev-shinylive via Makefile (#1184) Put all "Other Changes" items into one section Use consistent formatting for items in changelog Don't run playwright-deploys tests on release tests(resolve-id): Update window size to ensure tooltip is visible (#1179) Setup dev version 0.8.0.9000 (#1181) Bump version to 0.8.0 Revert API changes made in `Selected rows method` #1121 (#1174) Make autoreload work on codespaces (#1167) ...
2 parents f3c6eef + 11b83c3 commit 0de93ad

File tree

132 files changed

+913
-423
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+913
-423
lines changed

.github/py-shiny/setup/action.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
python-version:
55
description: 'Python version to use'
66
required: false
7-
default: "3.11"
7+
default: "3.12"
88
runs:
99
using: "composite"
1010
steps:
@@ -25,7 +25,6 @@ runs:
2525
shell: bash
2626
run: |
2727
pip install https://github.com/rstudio/py-htmltools/tarball/main
28-
pip install https://github.com/posit-dev/py-shinylive/tarball/main
2928
make install-deps
3029
3130
- name: Install

.github/workflows/build-docs.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.11"]
14+
python-version: ["3.12"]
1515
fail-fast: false
1616

1717
steps:
@@ -34,7 +34,6 @@ jobs:
3434
run: |
3535
cd docs
3636
make ../venv
37-
. ../venv/bin/activate && pip install https://github.com/posit-dev/py-htmltools/tarball/main https://github.com/posit-dev/py-shinylive/tarball/main
3837
make deps
3938
4039
- name: Run quartodoc

.github/workflows/pytest.yaml

Lines changed: 52 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
# "3.10" must be a string; otherwise it is interpreted as 3.1.
19-
python-version: ["3.11", "3.10", "3.9", "3.8"]
19+
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
2020
os: [ubuntu-latest, windows-latest, macOS-latest]
2121
fail-fast: false
2222

@@ -53,7 +53,7 @@ jobs:
5353
if: github.event_name != 'release'
5454
strategy:
5555
matrix:
56-
python-version: ["3.11", "3.10", "3.9", "3.8"]
56+
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
5757
os: [ubuntu-latest]
5858
fail-fast: false
5959

@@ -68,13 +68,19 @@ jobs:
6868
timeout-minutes: 20
6969
run: |
7070
make playwright-shiny SUB_FILE=". -vv"
71+
- uses: actions/upload-artifact@v4
72+
if: failure()
73+
with:
74+
name: "playright-shiny-${{ matrix.os }}-${{ matrix.python-version }}-results"
75+
path: test-results/
76+
retention-days: 5
7177

7278
playwright-examples:
7379
runs-on: ${{ matrix.os }}
7480
if: github.event_name != 'release'
7581
strategy:
7682
matrix:
77-
python-version: ["3.11", "3.10", "3.9", "3.8"]
83+
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
7884
os: [ubuntu-latest]
7985
fail-fast: false
8086

@@ -100,9 +106,42 @@ jobs:
100106
timeout-minutes: 20
101107
run: |
102108
make playwright-examples SUB_FILE=". -vv"
109+
- uses: actions/upload-artifact@v4
110+
if: failure()
111+
with:
112+
name: "playright-examples-${{ matrix.os }}-${{ matrix.python-version }}-results"
113+
path: test-results/
114+
retention-days: 5
115+
116+
playwright-deploys-precheck:
117+
if: github.event_name != 'release'
118+
runs-on: ${{ matrix.os }}
119+
strategy:
120+
matrix:
121+
# Matches deploy server python version
122+
python-version: ["3.10"]
123+
os: [ubuntu-latest]
124+
fail-fast: false
125+
126+
steps:
127+
- uses: actions/checkout@v3
128+
- name: Setup py-shiny
129+
uses: ./.github/py-shiny/setup
130+
with:
131+
python-version: ${{ matrix.python-version }}
132+
133+
- name: Test that deployable example apps work
134+
timeout-minutes: 5 # ~10s locally
135+
env:
136+
DEPLOY_APPS: "false"
137+
run: |
138+
make playwright-deploys SUB_FILE=". -vv"
103139
104140
playwright-deploys:
141+
needs: [playwright-deploys-precheck]
142+
if: github.event_name != 'release' && (github.event_name == 'push' || (github.event_name == 'pull_request' && startsWith(github.head_ref, 'deploy')))
105143
# Only allow one `playwright-deploys` job to run at a time. (Independent of branch / PR)
144+
# Only one is allowed to run at a time because it is deploying to the same server location.
106145
concurrency: playwright-deploys
107146
runs-on: ${{ matrix.os }}
108147
strategy:
@@ -119,8 +158,8 @@ jobs:
119158
with:
120159
python-version: ${{ matrix.python-version }}
121160

122-
- name: Test deploys example apps locally
123-
timeout-minutes: 5
161+
- name: Test that deployable example apps work
162+
timeout-minutes: 5 # ~10s locally
124163
env:
125164
DEPLOY_APPS: "false"
126165
run: |
@@ -141,6 +180,13 @@ jobs:
141180
run: |
142181
make playwright-deploys SUB_FILE=". -vv --numprocesses 12"
143182
183+
- uses: actions/upload-artifact@v4
184+
if: failure()
185+
with:
186+
name: "playright-deploys-${{ matrix.os }}-${{ matrix.python-version }}-results"
187+
path: test-results/
188+
retention-days: 5
189+
144190
pypi:
145191
name: "Deploy to PyPI"
146192
runs-on: ubuntu-latest
@@ -185,6 +231,7 @@ jobs:
185231
strategy:
186232
matrix:
187233
python-version:
234+
- "3.12"
188235
- "3.11"
189236
- "3.10"
190237
- "3.9"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,4 @@ docs/source/reference/
114114
# Developer scratch area
115115
_dev/
116116
tests/playwright/deploys/**/requirements.txt
117+
test-results/

0 commit comments

Comments
 (0)