Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/py-shiny/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
description: 'Python version to use'
required: false
default: "3.11"
local:
description: 'If true, use `pip install -e .` instead of `make install`'
required: false
default: "false"
runs:
using: "composite"
steps:
Expand All @@ -25,14 +29,18 @@ runs:
shell: bash
run: |
pip install https://github.com/rstudio/py-htmltools/tarball/main
# Install shiny _before_ shinylive; otherwise shinylive will install cause
# shiny to be installed from PyPI, and may bring in old versions of
# dependencies.
pip install -e .
pip install https://github.com/posit-dev/py-shinylive/tarball/main
make install-deps

- name: Install
- name: Install py-shiny using `make install`
if: ${{ inputs.local == 'false' }}
shell: bash
run: |
echo "Installing py-shiny using make install"
make install
- name: Install py-shiny using `pip install -e`
if: ${{ inputs.local == 'true'}}
shell: bash
run: |
echo "Installing py-shiny using pip install -e ."
make clean
pip install -e .
1 change: 1 addition & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
uses: ./.github/py-shiny/setup
with:
python-version: ${{ matrix.python-version }}
local: "true"

- name: Run unit tests
if: steps.install.outcome == 'success' && (success() || failure())
Expand Down