chore: release 1.13.1 #153
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| checks: | |
| name: Lint & type-check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.15 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install npm dependencies | |
| run: npm install | |
| - name: Install Python tools | |
| run: pip install ruff mypy | |
| - name: Prettier | |
| run: npx prettier --check "src/**/*.ts" "webviews/viewer/src/**/*.{ts,svelte}" "webviews/export/**/*.{js,css,html}" | |
| - name: ESLint | |
| run: npx eslint --max-warnings=0 src/ webviews/export/ | |
| - name: TypeScript | |
| run: npx tsc --noEmit | |
| - name: svelte-check (viewer) | |
| run: npx svelte-check --tsconfig webviews/viewer/tsconfig.json --fail-on-warnings | |
| - name: svelte-check (export) | |
| run: npx svelte-check --tsconfig webviews/export/tsconfig.json --fail-on-warnings | |
| - name: svelte-check (study) | |
| run: npx svelte-check --tsconfig webviews/study/tsconfig.json --fail-on-warnings | |
| - name: Ruff lint | |
| run: python3 -m ruff check python/lsp/ python/med2obj.py python/mesh_groups.py | |
| - name: Ruff format | |
| run: python3 -m ruff format --check python/lsp/ python/med2obj.py python/mesh_groups.py | |
| - name: mypy | |
| run: python3 -m mypy | |
| build: | |
| name: Package | |
| runs-on: ubuntu-latest | |
| needs: checks | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.15 | |
| - name: Install Python | |
| run: sudo apt-get update && sudo apt-get install -y python3 python3-pip python3-nox python3-venv | |
| - name: Install npm dependencies | |
| run: npm install | |
| - name: Install vsce | |
| run: npm install -g @vscode/vsce | |
| - name: Build and package | |
| run: python3 -m nox -s package -v --no-error-on-missing-interpreters | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vsix-package | |
| path: "*.vsix" | |
| retention-days: 30 |