feat(theme_basic): Add globaltoc widget #50
This file contains 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: 'Run CI jobs' | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- name: 'Setup env' | |
run: | | |
task setup | |
- name: Lint by pre-commit | |
run: | | |
lefthook run pre-commit --all-files | |
source-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
workspace: ['locked', 'latest'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- name: 'Setup python' | |
id: 'setup-python' | |
run: | | |
echo ${{ matrix.python-version }} > .python-version | |
- name: 'Configure env as locked deps by uv.lock' | |
run: | | |
uv sync --frozen --python='${{ steps.setup-python.outputs.python-path }}' | |
if: ${{ matrix.workspace == 'locked'}} | |
- name: 'Configure env as latest deps on PyPI' | |
run: | | |
uv sync -U --python='${{ steps.setup-python.outputs.python-path }}' | |
if: ${{ matrix.workspace == 'latest'}} | |
- name: 'Run tests' | |
run: | | |
uv run pytest | |
docs-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- name: Run tests | |
run: | | |
task setup | |
task docs:build-linkcheck docs:build-dirhtml | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jdx/mise-action@v2 | |
- name: Build package | |
run: | | |
uv build | |
ls -l dist |