Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
37 changes: 37 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,43 @@ jobs:
path: packages/ # Upload the contents of the dist directory
retention-days: 1 # Keep artifact for 1 day (adjust as needed)

build-windows:
name: Build Dash Package - Windows
runs-on: windows-latest
timeout-minutes: 30
outputs:
artifact_name: dash-packages
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node.js for frontend build
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm

- name: Install NPM dependencies
run: npm ci

- name: Set up Python for build
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install "setuptools<80.0.0"
python -m pip install build wheel
python -m pip install -e .[dev,ci]

- name: Build Dash
run: npm run first-build

test-typing:
name: Typing Tests
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions dash/development/update_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def bootstrap_components(components_source, concurrency, install_type):
else "{dash-core-components,dash-html-components,dash-table}"
)

cmdstr = f"npx lerna exec --concurrency {concurrency} --scope='{source_glob}' -- npm {install_type}"
cmdstr = f"npx lerna exec --concurrency {concurrency} --scope={source_glob} -- npm {install_type}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We needed those '' for spaces that might be in the directory path, while ' is not windows compatible, " is and work on both os.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tried it, and it did not work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was an issue with the posix, needed to be passed True

cmd = shlex.split(cmdstr, posix=not is_windows)
status_print(cmdstr)

Expand Down Expand Up @@ -79,7 +79,7 @@ def build_components(components_source, concurrency):
else "{dash-core-components,dash-html-components,dash-table}"
)

cmdstr = f"npx lerna exec --concurrency {concurrency} --scope='{source_glob}' -- npm run build"
cmdstr = f"npx lerna exec --concurrency {concurrency} --scope={source_glob} -- npm run build"
cmd = shlex.split(cmdstr, posix=not is_windows)
status_print(cmdstr)

Expand Down
Loading