feat: Migrate from ipywidgets to MIME renderer architecture (v0.4.0) #61
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
| name: Build-Test | |
| on: | |
| # push: | |
| # branches: | |
| # - main | |
| pull_request: | |
| branches: | |
| - '*' | |
| workflow_call: # 他のワークフローから呼び出せるようにする | |
| jobs: | |
| build-test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ['3.10', '3.11', '3.12'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Setup Yarn | |
| run: | | |
| corepack enable | |
| corepack prepare [email protected] --activate | |
| echo 'nodeLinker: node-modules' > .yarnrc.yml | |
| - name: Yarn version | |
| run: | | |
| yarn --version | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -U codecov | |
| yarn --version | |
| yarn config set nodeLinker node-modules | |
| if [ "$RUNNER_OS" == "Windows" ]; then | |
| yarn install | |
| else | |
| YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install | |
| fi | |
| env: | |
| YARN_ENABLE_IMMUTABLE_INSTALLS: 'false' | |
| - name: Install package | |
| run: | | |
| python -m pip install --upgrade -v -e ".[test, examples, docs]" | |
| - name: Run Python tests | |
| run: | | |
| python -m pytest -v | |
| - name: Run JavaScript tests | |
| run: | | |
| yarn run test | |
| - name: Linting | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| run: | | |
| yarn run lint:check | |
| # - name: Check docs can be build + links | |
| # if: ${{ matrix.os == 'ubuntu-latest' }} | |
| # working-directory: docs | |
| # run: | | |
| # sudo apt install -y pandoc | |
| # make html | |
| # python -m pytest --check-links |