From ad6fe7c6e7d94b614e11bf73f7b88ae930cb023d Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 26 May 2025 12:31:35 +0200 Subject: [PATCH] Test for missing optional dependencies added --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f26696d..129362a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,41 @@ on: branches: [main] jobs: + build-ubuntu-no-optional-dependencies: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.12] + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install from source and install pytest + run: | + python -m pip install --upgrade pip + python -m pip install -e . + python -m pip install pytest + + - name: Run tests with pytest (no matplotlib, no pandas) + run: | + pytest tests\test_rendering_markdown.py::test_markdown_styling + pytest tests\test_rendering_markdown.py::test_markdown_table + + - name: Install matplotlib + run: | + python -m pip install matplotlib + + - name: Run tests with pytest rendering equations (with matplotlib) + run: | + pytest tests\test_rendering_markdown.py::test_markdown_equations + build-ubuntu: runs-on: ubuntu-latest