name: CI Pipeline on: push: branches: [main] pull_request: branches: [main] jobs: build-windows: runs-on: windows-latest strategy: matrix: python-version: ["3.10"] 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: Cache MiKTeX Portable uses: actions/cache@v4 id: miktex with: path: miktex-portable key: miktex-portable-${{ runner.os }}-24.1-x64 - if: ${{ steps.miktex.outputs.cache-hit != 'true' }} name: Set up MiKTeX Portable run: | $ProgressPreference = 'SilentlyContinue' Invoke-WebRequest https://www.nonan.net/w/files/miktex-portable-Win-x64.zip -OutFile miktex-portable-Win-x64.zip Expand-Archive miktex-portable-Win-x64.zip -DestinationPath . - name: Copy and check directory structure of MiKTeX installation run: | robocopy miktex-portable C:\tmp\test_miktex\miktex-portable /E /NFL /NDL if ($LASTEXITCODE -eq 1) { exit 0 } - name: Add miktex to PATH run: | echo "PATH=$PATH;C:\tmp\test_miktex\miktex-portable\texmfs\install\miktex\bin\x64;C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_ENV -Append - name: test xelatex run: xelatex --version - name: Install Python dependencies run: | python -m pip install -e .[dev] - name: Run tests with pytest run: pytest tests/test_rendering_markdown.py::test_markdown_styling - 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