From 2742273a26fd28137a447799768dd184b0f68e1d Mon Sep 17 00:00:00 2001 From: Jakub Andrysek Date: Wed, 3 Apr 2024 01:25:15 +0200 Subject: [PATCH] Add MkDoxy build workflow for all supported Python versions --- .github/workflows/mkdoxy-pytest-repo.yaml | 28 +++++++++++ .idea/workspace.xml | 58 ++++++++++++----------- mkdoxy/doxyrun.py | 3 +- tests/test_doxyrun.py | 13 ++++- 4 files changed, 71 insertions(+), 31 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..50b1bf42 --- /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", "3.12"] + + 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/.idea/workspace.xml b/.idea/workspace.xml index bd58b38f..7036b79d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,9 @@ - + + +