mirror of
https://github.com/kuhyx/praca_magisterska.git
synced 2026-07-04 11:43:16 +02:00
* Initial plan * Fix CI workflow to run scons in latex directory Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com> * Add branch protection and pre-commit configuration documentation Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com> * Clarify placeholder variables in branch protection CLI command Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
compiler: ['lualatex', 'pdflatex']
|
|
faculty: ['eiti', 'meil']
|
|
lang: ['eng','pol']
|
|
thesis: ['EngineerThesis', 'MasterThesis']
|
|
fail-fast: false
|
|
steps:
|
|
- name: Install LaTeX dependencies
|
|
run: |
|
|
sudo apt-get install -y \
|
|
biber \
|
|
latexmk \
|
|
python3-pip \
|
|
texlive \
|
|
texlive-bibtex-extra \
|
|
texlive-fonts-extra \
|
|
texlive-latex-extra \
|
|
texlive-lang-polish \
|
|
texlive-luatex \
|
|
tex-gyre
|
|
|
|
- name: Checkout WUT-Thesis repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Python dependencies
|
|
run: sudo pip install -r requirements.txt
|
|
|
|
- name: Generate test cases
|
|
run: scons generate_tests
|
|
working-directory: latex
|
|
|
|
- name: Generate PDF file
|
|
run: cp test/${{matrix.lang}}/${{matrix.faculty}}/${{matrix.thesis}}.textest main.tex && scons all
|
|
working-directory: latex
|
|
|
|
- name: Verify build with referential text
|
|
run: |
|
|
scons test pdf=build/pdfs/${{matrix.compiler}}.pdf \
|
|
ref=test/${{matrix.lang}}/${{matrix.faculty}}/${{matrix.thesis}}_${{matrix.compiler}}.txt
|
|
working-directory: latex
|