From 7c8980a7d1862f2dd0eec8b2f765f02d29bbdf06 Mon Sep 17 00:00:00 2001 From: Jakub Andrysek Date: Wed, 3 Apr 2024 01:19:59 +0200 Subject: [PATCH] Lint + update tests --- .github/workflows/mkdoxy-pytest-repo.yaml | 28 +++++++++++++++++++++++ .github/workflows/mkdoxy-test-demos.yaml | 2 +- .github/workflows/mkdoxy-test-repo.yaml | 2 +- .idea/misc.xml | 2 +- .idea/workspace.xml | 17 ++++---------- demo-projects/animal/Doxyfile | 2 +- docs/usage/advanced.md | 2 +- mkdoxy/doxyrun.py | 4 +++- setup.py | 3 ++- tests/data/Doxyfile | 2 +- tests/test_doxyrun.py | 5 +++- 11 files changed, 47 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/mkdoxy-pytest-repo.yaml diff --git a/.github/workflows/mkdoxy-pytest-repo.yaml b/.github/workflows/mkdoxy-pytest-repo.yaml new file mode 100644 index 00000000..9086fe82 --- /dev/null +++ b/.github/workflows/mkdoxy-pytest-repo.yaml @@ -0,0 +1,28 @@ +name: MkDoxy build all supported Python versions + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] # windows-latest, macos-latest requires doxygen to be installed manually + python-version: ["3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Display Python version + run: python -c "import sys; print(sys.version)" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -e ".[dev]" + sudo apt-get install doxygen + - name: Run Pytest + run: | + pytest tests/ diff --git a/.github/workflows/mkdoxy-test-demos.yaml b/.github/workflows/mkdoxy-test-demos.yaml index e7df08ad..8d09ba83 100644 --- a/.github/workflows/mkdoxy-test-demos.yaml +++ b/.github/workflows/mkdoxy-test-demos.yaml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] # windows-latest, macos-latest requires doxygen to be installed manually - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/mkdoxy-test-repo.yaml b/.github/workflows/mkdoxy-test-repo.yaml index 81a93d27..c008dce6 100644 --- a/.github/workflows/mkdoxy-test-repo.yaml +++ b/.github/workflows/mkdoxy-test-repo.yaml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] # windows-latest, macos-latest requires doxygen to be installed manually - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 diff --git a/.idea/misc.xml b/.idea/misc.xml index a6218fed..a0641c7e 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,4 +4,4 @@