Skip to content

fix: remove extra labels #3

fix: remove extra labels

fix: remove extra labels #3

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
test:
name: "🐍 ${{ matrix.python-version }} • ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- os: macos-latest
python-version: "3.12"
- os: windows-latest
python-version: "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install package
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Test import
run: python -c "import mkdocs_header_dropdown; from mkdocs_header_dropdown.plugin import HeaderDropdownPlugin"
- name: Install test dependencies
run: |
pip install mkdocs>=1.4.0 mkdocs-material pyyaml
- name: Test plugin registration
run: |
python -c "from mkdocs.plugins import get_plugin_logger; print('Plugin system functional')"
lint:
name: Lint code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Lint with ruff
run: ruff check mkdocs_header_dropdown/
continue-on-error: true