Support multiple documentation items with the same name #22
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
# SPDX-FileCopyrightText: © 2022 Matt Williams <[email protected]> | |
# SPDX-License-Identifier: MIT | |
name: Check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_call: {} | |
permissions: | |
contents: read | |
jobs: | |
code-checks: | |
name: Tests and lints | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install doxygen | |
run: | | |
sudo apt install -y doxygen | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Setup package | |
run: poetry install | |
- name: Run mypy | |
run: poetry run mypy --install-types --non-interactive sphinxcontrib/doxylink | |
- name: Run pytest | |
run: poetry run pytest | |
- name: Test that package builds | |
run: poetry build |