Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/compile-latex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build LaTeX document

on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4

- name: Compile main LaTeX document
uses: xu-cheng/latex-action@v3
with:
working_directory: notes
root_file: main.tex

- name: Check if PDF was created
run: |
ls -la
ls -la notes
if [ -f "notes/main.pdf" ]; then
echo "PDF generated successfully."
else
echo "PDF generation failed." >&2
exit 1
fi
21 changes: 21 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Docker build image test'

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
docker-test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Build & Run Docker image
run: |
docker compose build
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Ignore Jupyter Notebook checkpoints
*.ipynb_checkpoints

*__pycache__

src/personal
# MacOs file
**/.DS_Store

src/personal
8 changes: 8 additions & 0 deletions notes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.aux
*.fdb_latexmk
*.fls
*.log
*.out
*.toc
*.synctex.gz
*.pdf
Loading