CI script updated

This commit is contained in:
Nicolas Kruse 2025-05-19 14:18:48 +02:00
parent f2588bb7d7
commit efe702a522
1 changed files with 38 additions and 4 deletions

View File

@ -7,12 +7,12 @@ on:
branches: [main] branches: [main]
jobs: jobs:
build: build-ubuntu:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: ["3.10", 3.11, 3.12, 3.13] python-version: ["3.10", 3.13]
steps: steps:
- name: Check out code - name: Check out code
@ -24,7 +24,7 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install LaTeX - 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 - name: Install Python dependencies
run: | run: |
@ -44,5 +44,39 @@ jobs:
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: strategy.job-index == 0 if: strategy.job-index == 0
with: with:
name: rendering-results name: rendering-results-ubuntu
path: tests/out/test_*_render* 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