-
Notifications
You must be signed in to change notification settings - Fork 60
build: refactor build strategy #259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
e8600dd
build: move information to pyproject.toml
12rambau 5a0b012
refactor: move more things to pyproject.toml
12rambau 9d551db
refactor: move bdist_wheel config to pyproject.toml
12rambau d4af14a
refactor: file cleaning
12rambau 67abd19
build: update the gitignore with all the generated files
12rambau 703dde7
refactor: use pathlib in generate_source
12rambau 79b60df
fix: set the path in sys explicitely
12rambau c96795e
build: manage files that should be included in the distrib
12rambau 24d3623
refactor: avoid using single used class
12rambau 69549be
build: add js folder to manifest.in
12rambau 933e7c3
build: fix action build
12rambau 5e5ca6a
Merge branch 'master' into install
12rambau 4ce25a8
build(deps): set playwrite and solara in pyproject.toml
12rambau 825b055
test: update actions
12rambau 7aa421e
build: run CI in parralel
12rambau dc8aa2f
test(CI): reintroduce a wheel build test
12rambau 2ea00a7
build: restore export artifacts
12rambau 54ed8eb
build: use the build wheel in the CI
12rambau bb2167d
refactor: prettier
12rambau e548b0b
refactor: typo
12rambau 0315b3f
build: wheel file cannot be renamed
12rambau 9d7996e
build: add legacy provider node option to actions
12rambau 1213eb5
build: us node12
12rambau 3e335dd
build: typo
12rambau 7c870bf
build: use node 16
12rambau b9bd30d
build: use node 16
12rambau ef98fda
refactor: typo
12rambau 11ac604
buimd: only install npm packages upon egg-info creation
12rambau ad5f5eb
refactor: remove the test notebook
12rambau 23c1b9b
Update .gitignore
12rambau e84b4b2
fix: pin ubuntu version in CI
12rambau f996604
fix: restore binder requirements
12rambau f3980bb
build: support Python from 3.6 to 3.11
12rambau 0140143
build(ci): use the default install for ui-test
12rambau 1ec1816
Revert "build(ci): use the default install for ui-test"
mariobuikhuizen 95cb6b4
build(ci): fix test job for python 3.6 by removing playwright dep
mariobuikhuizen cfdeaaf
build(ci): fix failing Jupyter Lab ui test
mariobuikhuizen d6c7200
build(ci): fix "no such kernel" error on readthedocs
mariobuikhuizen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -6,101 +6,77 @@ on: | |
- workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
node-version: "14.x" | ||
registry-url: "https://registry.npmjs.org" | ||
python-version: "3.10" | ||
- uses: pre-commit/[email protected] | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install twine wheel jupyter-packaging jupyterlab | ||
|
||
- name: Build | ||
run: | | ||
python setup.py generate_source | ||
python setup.py sdist bdist_wheel | ||
|
||
- name: Build | ||
run: | | ||
cd js | ||
npm pack | ||
|
||
- name: Upload builds | ||
uses: actions/upload-artifact@v3 | ||
python-version: "3.10" | ||
# https://github.com/webpack/webpack/issues/14532 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
- name: install build | ||
run: python -m pip install build | ||
- name: build wheel | ||
run: python -m build | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ipyvuetify-dist-${{ github.run_number }} | ||
path: | | ||
./dist | ||
./js/*.tgz | ||
|
||
test: | ||
needs: [build] | ||
needs: [lint, build] | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11"] | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: ipyvuetify-dist-${{ github.run_number }} | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install | ||
run: pip install dist/*.whl | ||
|
||
- name: Import | ||
# do the import in a subdirectory, as after installation, files in de current directory are also imported | ||
run: | | ||
(mkdir test-install; cd test-install; python -c "from ipyvuetify import Btn") | ||
- name: Install ipyvuetify | ||
run: python -m pip install "$(find dist -name *.whl)" | ||
- name: test import | ||
run: (mkdir test-install; cd test-install; python -c "from ipyvuetify import Btn") | ||
|
||
ui-test: | ||
needs: [build] | ||
needs: [lint, build] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: ipyvuetify-dist-${{ github.run_number }} | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install vuetify and test deps | ||
run: | | ||
wheel=(dist/*.whl) | ||
pip install ${wheel}[test] "jupyter_server<2" | ||
|
||
- name: Install playwright browsers | ||
- name: Install ipyvuetify | ||
run: python -m pip install "$(find dist -name *.whl)[test]" | ||
- name: Install chromium | ||
run: playwright install chromium | ||
|
||
- name: Run ui-tests | ||
run: pytest tests/ui/ --video=retain-on-failure --solara-update-snapshots-ci -s | ||
|
||
- name: Upload Test artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ipyvuetify-test-results | ||
path: test-results | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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,4 +1,4 @@ | ||
ipyvuetify>=1.2.2<2 | ||
jupyter-sphinx==0.2.4a1 | ||
sphinx_rtd_theme | ||
|
||
ipykernel |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.