Skip to content

Commit ad81c01

Browse files
committed
do not install shiny if installing another way
1 parent 3ff6567 commit ad81c01

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ inputs:
55
description: 'Python version to use'
66
required: false
77
default: "3.12"
8+
install:
9+
description: 'Should shiny be installed'
10+
required: false
11+
default: "true"
812
runs:
913
using: "composite"
1014
steps:
@@ -30,22 +34,25 @@ runs:
3034
echo "UV_SYSTEM_PYTHON=1" >> $GITHUB_ENV
3135
3236
- name: Install dependencies
37+
if: ${{ inputs.install == 'true' }}
3338
shell: bash
3439
run: |
3540
make ci-install-deps
3641
3742
- name: Install
43+
if: ${{ inputs.install == 'true' }}
3844
shell: bash
3945
run: |
4046
make ci-install-wheel
4147
4248
- name: Install backports.tarfile
43-
if: ${{ startsWith(inputs.python-version, '3.8') }}
49+
if: ${{ startsWith(inputs.python-version, '3.8') && inputs.install == 'true' }}
4450
shell: bash
4551
run: |
4652
uv pip install backports.tarfile
4753
4854
- name: Pip list
55+
if: ${{ inputs.install == 'true' }}
4956
shell: bash
5057
run: |
5158
uv pip list

.github/workflows/deploy-tests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,16 @@ jobs:
7777
uses: ./.github/py-shiny/setup
7878
with:
7979
python-version: ${{ matrix.python-version }}
80+
install: ${{ !(matrix.config.pypi_shiny || matrix.config.github_shiny) }}
8081

8182
- name: Install pypi shiny and htmltools (uninstall GitHub versions)
8283
if: ${{ matrix.config.pypi_shiny }}
8384
run: |
84-
uv pip uninstall shiny htmltools
8585
uv pip install shiny htmltools
8686
8787
- name: Install GitHub [email protected] and [email protected] (uninstall PyPI versions)
8888
if: ${{ matrix.config.github_shiny }}
8989
run: |
90-
uv pip uninstall shiny htmltools
9190
uv pip install "htmltools @ git+https://github.com/posit-dev/[email protected]" "shiny @ git+https://github.com/posit-dev/[email protected]"
9291
9392
- name: Install rsconnect (PyPI)

0 commit comments

Comments
 (0)