Skip to content
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

Fix CI #226

Merged
merged 14 commits into from
Nov 23, 2023
Merged
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
4 changes: 1 addition & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier'
'plugin:@typescript-eslint/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
Expand Down
23 changes: 8 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,7 @@ jobs:
extra-specs: |
python=3.9
jupyterlab=4
freecad

- name: Lint the extension
shell: bash -l {0}
run: |
set -eux
jlpm
export NODE_OPTIONS="--max-old-space-size=4096"
jlpm run lint:check
yarn=3

- name: Setup pip cache
uses: actions/cache@v2
Expand Down Expand Up @@ -70,6 +62,7 @@ jobs:
shell: bash -l {0}
run: |
set -eux
yarn install
yarn dev
jupyter labextension list 2>&1 | grep -ie "jupytercad-core.*OK"
jupyter labextension list 2>&1 | grep -ie "jupytercad-lab.*OK"
Expand Down Expand Up @@ -100,9 +93,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v4
with:
Expand All @@ -120,10 +110,13 @@ jobs:
# Remove NodeJS, twice to take care of system and locally installed node versions.
sudo rm -rf $(which node)
sudo rm -rf $(which node)
pip install "jupyterlab>=4.0.0" jupytercad*.whl

cp ./jupytercad-core/dist/jupytercad*.whl ./jupytercad-lab/dist/jupytercad*.whl ./jupytercad-app/dist/jupytercad*.whl .
python -m pip install "jupyterlab>=4.0.0" jupytercad*.whl

jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "jupytercad.*OK"
jupyter cad --version
# jupyterlab.browser_check will fail due to the core extension jupyterlab_pygments.
# It does not support lab v4.0.0
#python -m jupyterlab.browser_check --no-chrome-test
Expand All @@ -149,8 +142,7 @@ jobs:
extra-specs: |
python=3.9
jupyterlab=4
freecad
pythonocc-core
pythonocc-core=7.7.0

- name: Download extension package
uses: actions/download-artifact@v3
Expand All @@ -161,6 +153,7 @@ jobs:
shell: bash -l {0}
run: |
set -eux
cp ./jupytercad-core/dist/jupytercad*.whl ./jupytercad-lab/dist/jupytercad*.whl ./jupytercad-app/dist/jupytercad*.whl .
python -m pip install jupytercad*.whl

- name: Install dependencies
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install Dependencies
run: |
pip install "jupyterlab>=4.0.0,<5"
yarn dev

- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-name: cad
environment-file: false
channels: conda-forge/label/jupyterlab_beta,conda-forge
extra-specs: |
python=3.9
jupyterlab=4
yarn=3

- name: Check Release
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_galata_references.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ jobs:

- name: Create the conda environment
shell: bash -l {0}
run: mamba install -q python=3.9 pip freecad jupyterlab=4.0.0 pythonocc-core
run: mamba install -q python=3.9 pip freecad jupyterlab=4 pythonocc-core=7.7.0

- name: Install the extension
shell: bash -l {0}
run: |
whereis python
cp ./jupytercad-core/dist/jupytercad*.whl ./jupytercad-lab/dist/jupytercad*.whl ./jupytercad-app/dist/jupytercad*.whl .
python -m pip install jupytercad*.whl
python -m pip install jupyter_collaboration==1.0.0a9

- name: Install dependencies
shell: bash -l {0}
Expand Down
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@ repos:
- '[email protected]'
- '@typescript-eslint/[email protected]'
- '@typescript-eslint/[email protected]'
- '[email protected]'
- '[email protected]'
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
node_modules
**/node_modules
**/lib
**/package.json
jupytercad
**/*.d.ts
**/*.js
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2

build:
os: "ubuntu-20.04"
os: 'ubuntu-20.04'
tools:
python: "mambaforge-4.10"
python: 'mambaforge-4.10'

conda:
environment: docs/environment.yml
2 changes: 1 addition & 1 deletion docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ dependencies:
- pydata-sphinx-theme
- sphinx-autodoc-typehints
- pip:
- jupytercad
- jupytercad
Binary file removed examples/ArchDetail.FCStd
Binary file not shown.
Binary file removed examples/common.FCStd
Binary file not shown.
Binary file removed examples/cut.FCStd
Binary file not shown.
Binary file removed examples/example1.FCStd
Binary file not shown.
Binary file removed examples/example2.FCStd
Binary file not shown.
Binary file removed examples/example3.FCStd
Binary file not shown.
Binary file removed examples/example4.FCStd
Binary file not shown.
Binary file removed examples/example5.FCStd
Binary file not shown.
Binary file removed examples/example6.FCStd
Binary file not shown.
Binary file removed examples/example_2D.FCStd
Binary file not shown.
145 changes: 77 additions & 68 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,79 @@
{
"name": "@jupytercad/jupytercad-root",
"version": "0.3.3",
"private": true,
"homepage": "https://github.com/jupytercad/jupytercad",
"repository": {
"type": "git",
"url": "https://github.com/jupytercad/jupytercad.git"
},
"license": "BSD-3-Clause",
"description": "A JupyterLab extension for 3D modelling.",
"keywords": [
"jupyter",
"jupyterlab",
"jupyterlab-extension"
],
"bugs": {
"url": "https://github.com/jupytercad/jupytercad/issues"
},
"author": {
"name": "JupyterCad contributors"
},
"workspaces": [
"packages/*",
"python/jupytercad-core",
"python/jupytercad-lab",
"python/jupytercad-app"
],
"scripts": {
"build": "lerna run build",
"build:prod": "lerna run build:prod",
"build:test": "lerna run build:test",
"bump:js:version": "lerna version --no-push --force-publish --no-git-tag-version --yes",
"clean": "lerna run clean",
"clean:all": "lerna run clean:all",
"eslint": "eslint . --ext .ts,.tsx --cache --fix",
"eslint:check": "eslint . --ext .ts,.tsx",
"prettier": "prettier --write \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
"prettier:check": "prettier --list-different \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
"lint:check": "jlpm run prettier:check && jlpm run eslint:check",
"lint": "jlpm run prettier && jlpm run eslint",
"test": "lerna run test",
"dev": "python scripts/dev-install.py",
"build:packages": "python scripts/build_packages.py",
"watch:lib": "lerna run --stream watch",
"watch": "lerna watch -- lerna run build --scope=\\$LERNA_PACKAGE_NAME --include-dependents",
"build:lab": "lerna run --ignore @jupytercad/jupytercad-app build",
"build:app": "lerna run --ignore @jupytercad/jupytercad-lab build"
},
"resolutions": {
"@jupyterlab/apputils": "~4.0.0",
"@lumino/coreutils": "^2.0.0",
"@jupyterlab/notebook": "~4.0.0",
"@jupyterlab/services": " ^7.0.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "~5.55.0",
"@typescript-eslint/parser": "~5.55.0",
"copy-webpack-plugin": "^10.0.0",
"eslint": "~8.36.0",
"eslint-config-prettier": "~8.7.0",
"eslint-plugin-prettier": "^5.0.0",
"lerna": "^7.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"rimraf": "^3.0.2",
"typescript": "^5",
"webpack": "^5.76.3"
}
"name": "@jupytercad/jupytercad-root",
"version": "0.3.3",
"private": true,
"homepage": "https://github.com/jupytercad/jupytercad",
"repository": {
"type": "git",
"url": "https://github.com/jupytercad/jupytercad.git"
},
"license": "BSD-3-Clause",
"description": "A JupyterLab extension for 3D modelling.",
"keywords": [
"jupyter",
"jupyterlab",
"jupyterlab-extension"
],
"bugs": {
"url": "https://github.com/jupytercad/jupytercad/issues"
},
"author": {
"name": "JupyterCad contributors"
},
"files": [
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
"style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
],
"workspaces": [
"packages/*",
"python/jupytercad-core",
"python/jupytercad-lab",
"python/jupytercad-app"
],
"scripts": {
"build": "lerna run build",
"build:prod": "lerna run build:prod",
"build:test": "lerna run build:test",
"bump:js:version": "lerna version --no-push --force-publish --no-git-tag-version --yes",
"clean": "lerna run clean",
"clean:all": "lerna run clean:all",
"eslint": "eslint . --ext .ts,.tsx --cache --fix",
"eslint:check": "eslint . --ext .ts,.tsx",
"prettier": "prettier --write \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
"prettier:check": "prettier --list-different \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
"lint:check": "jlpm run prettier:check && jlpm run eslint:check",
"lint": "jlpm run prettier && jlpm run eslint",
"test": "lerna run test",
"dev": "python scripts/dev-install.py",
"build:packages": "python scripts/build_packages.py",
"watch:lib": "lerna run --stream watch",
"watch": "lerna watch -- lerna run build --scope=\\$LERNA_PACKAGE_NAME --include-dependents",
"build:lab": "lerna run --ignore @jupytercad/jupytercad-app build",
"build:app": "lerna run --ignore @jupytercad/jupytercad-lab build"
},
"resolutions": {
"@jupyterlab/apputils": "~4.0.0",
"@lumino/coreutils": "^2.0.0",
"@jupyterlab/notebook": "~4.0.0",
"@jupyterlab/services": " ^7.0.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.55.0",
"@typescript-eslint/parser": "5.55.0",
"copy-webpack-plugin": "^10.0.0",
"eslint": "8.36.0",
"eslint-config-prettier": "8.7.0",
"eslint-plugin-prettier": "5.0.1",
"lerna": "^7.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"rimraf": "^3.0.2",
"stylelint": "^15.10.1",
"stylelint-config-recommended": "^13.0.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-csstree-validator": "^3.0.0",
"stylelint-prettier": "^4.0.0",
"typescript": "^5",
"webpack": "^5.76.3"
}
}
Loading
Loading