Skip to content

Commit aa4ad16

Browse files
Merge pull request #4 from merendamattia/main
Aggiunti gli appunti di Filippo Bianchi, il materiale visto nei laboratori e diversi workflow per il controllo automatizzato dell'immagine Docker e dei documenti LaTeX
2 parents 86e93a8 + 226bdc7 commit aa4ad16

39 files changed

+23341
-2
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build LaTeX document
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
build_latex:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Set up Git repository
17+
uses: actions/checkout@v4
18+
19+
- name: Compile main LaTeX document
20+
uses: xu-cheng/latex-action@v3
21+
with:
22+
working_directory: notes
23+
root_file: main.tex
24+
25+
- name: Check if PDF was created
26+
run: |
27+
ls -la
28+
ls -la notes
29+
if [ -f "notes/main.pdf" ]; then
30+
echo "PDF generated successfully."
31+
else
32+
echo "PDF generation failed." >&2
33+
exit 1
34+
fi

.github/workflows/docker-image.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Docker build image test'
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
docker-test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Build & Run Docker image
20+
run: |
21+
docker compose build

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Ignore Jupyter Notebook checkpoints
22
*.ipynb_checkpoints
3-
43
*__pycache__
54

6-
src/personal
5+
# MacOs file
6+
**/.DS_Store
7+
8+
src/personal

notes/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.aux
2+
*.fdb_latexmk
3+
*.fls
4+
*.log
5+
*.out
6+
*.toc
7+
*.synctex.gz
8+
*.pdf

0 commit comments

Comments
 (0)