From efe702a522e0e8764dd36bcf773f42f44c30590f Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Mon, 19 May 2025 14:18:48 +0200 Subject: [PATCH] CI script updated --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c9bfea..3aa31a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,12 +7,12 @@ on: branches: [main] jobs: - build: + build-ubuntu: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", 3.11, 3.12, 3.13] + python-version: ["3.10", 3.13] steps: - name: Check out code @@ -24,7 +24,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install LaTeX - run: sudo apt-get install -y texlive-latex-extra texlive-fonts-extra lmodern texlive-xetex texlive-science + run: sudo apt-get install -y texlive-latex-extra texlive-fonts-recommended lmodern texlive-xetex texlive-science - name: Install Python dependencies run: | @@ -44,5 +44,39 @@ jobs: uses: actions/upload-artifact@v4 if: strategy.job-index == 0 with: - name: rendering-results + name: rendering-results-ubuntu path: tests/out/test_*_render* + + build-windows: + runs-on: windows-latest + + strategy: + matrix: + python-version: ["3.10", "3.13"] + + 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 LaTeX + run: choco install miktex + + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -e .[dev] + + - name: Run tests with pytest + run: pytest + + - name: Upload rendered files + uses: actions/upload-artifact@v4 + if: strategy.job-index == 0 + with: + name: rendering-results-windows + path: tests/out/test_*_render*.pdf \ No newline at end of file