Skip to content

Feature Release: Standalone HTML Export #94

Feature Release: Standalone HTML Export

Feature Release: Standalone HTML Export #94

Workflow file for this run

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', '3.13', '3.14']
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: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install -U codecov
yarn --version
yarn install
- 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
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
yarn run test
- name: Linting
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
yarn run lint:check
- name: Run ruff check
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
python -m ruff check net_vis
- name: Run ruff format check
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
python -m ruff format --check net_vis
- name: Run pyright type check
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
python -m pyright net_vis
# - 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