Skip to content

Commit

Permalink
chore(thesis): set up build system (merge from #22)
Browse files Browse the repository at this point in the history
squash commit
  • Loading branch information
f-aguzzi authored May 18, 2024
1 parent 2deffcc commit 0b13ed3
Show file tree
Hide file tree
Showing 11 changed files with 109 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
paths:
- 'colab_datafusion_analysis/**'
- '.github/workflows/**'
- '.github/workflows/pylint.yml'

jobs:
build:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/thesis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Compile thesis to PDF

on:
push:
paths:
- 'thesis/**'
- '.github/workflows/thesis.yml'

jobs:
convert_via_pandoc:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: create file list
id: files_list
run: |
echo "files=$(printf '"%s" ' thesis/*.md)" > $GITHUB_OUTPUT
- uses: docker://pandoc/latex:2.9
with:
args: -o "thesis/tesi_federico_aguzzi.pdf" ${{ steps.files_list.outputs.files }}


- uses: actions/upload-artifact@v3
with:
name: thesis
path: thesis
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- 'colab_datafusion_analysis/**'
- 'tests/**'
- '.github/workflows/**'
- '.github/workflows/unittest.yml'

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions docs/src/pages/project/continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Our continuous integration workflow.

# Continuous Integration

Our remote repository operates four continuous integration / continuous deployment workflows.
Our remote repository operates five continuous integration / continuous deployment workflows.

Two of the workflows are about code quality:
- a [`pylint`](https://pylint.readthedocs.io/en/stable/)` workflow that rejects commits with a code quality lower than 8.00
Expand All @@ -15,4 +15,6 @@ A third workflow is about documentation deployment:
- a [`Docusaurus`](https://docusaurus.io) page builder that automatically deploys this documentation
website to [`GitHub Pages`](https://pages.github.com)

A fourth, final workflow automates semantic releases.
A fourth workflow automates semantic releases.

A fifth, final workflow automates the building of the thesis document.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ dev-dependencies = [

[tool.rye.scripts]
test = "python -m unittest discover tests"
pylint-local = "pylint colab_datafusuion_analysis/**/*.py"
pylint-ci = "pylint --disable=C0114,C0115,C0116 --exit-zero colab_datafusion_analysis/**/*.py"
pylint-score-ci = "pylint --disable=all --enable=metrics --output-format=text colab_datafusuion_analysis/**/.py"
pylint-local = "pylint chemfusekit/**/*.py"
pylint-ci = "pylint --disable=C0114,C0115,C0116 --exit-zero chemfusekit/**/*.py"
pylint-score-ci = "pylint --disable=all --enable=metrics --output-format=text chemfusekit/**/.py"

[tool.hatch.metadata]
allow-direct-references = true
Expand Down
49 changes: 49 additions & 0 deletions thesis/0-header.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
documentclass: article
header-includes: |
\usepackage{graphicx}
\usepackage[a4paper,margin=3cm]{geometry}
\usepackage[italian]{babel}
\usepackage{microtype}
---


\begin{center}
\includegraphics[width=0.6\textwidth]{thesis/logo-unibg.png}

{
\Large
Scuola di Ingegneria \\~\\
Dipartimento di Ingegneria dell'Informazione, della Gestione e della Produzione \\~\\
Classe n. L-8 - Classe delle lauree in Ingegneria dell'Informazione
}

\vspace{1.3cm}

{
\huge
\textbf{Realizzazione di una libreria Python su cloud per la fusione e l'analisi dei dati dalla scena del crimine}
}

\vspace{1.3cm}

{
\Large
\textbf{Federico Aguzzi}
\vfill

Candidato:\\
\emph{Federico Aguzzi}\\
Matricola n. 1066519
\vspace{0.6cm}

Relatore:\\
\emph{Chiar.mo Prof.\\Angelo Michele Gargantini}
}
\end{center}


\renewcommand{\baselinestretch}{1.5}
15 changes: 15 additions & 0 deletions thesis/1-abstract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
\thispagestyle{plain}
\begin{center}
\Large
\textbf{Realizzazione di una libreria Python su cloud per la fusione e l'analisi dei dati dalla scena del crimine}

\vspace{0.4cm}
\textbf{Federico Aguzzi}

\vspace{0.9cm}
\textbf{Abstract}

Un sistema ben strutturato, costruito su componenti open source esistenti, consente ai non programmatori di modificarlo e migliorarlo, risolvendo problemi pratici e rimanendo facilmente espandibile dagli utenti diretti - un risultato irraggiungibile senza i contributi dell'ingegneria del software.

Fornendo un'alternativa più semplice, rapida ed efficace alle alternative, sia commerciali che open source - e soprattutto, integrando per la prima volta un approccio \emph{data fusion} in una libreria di analisi - questo progetto mira a fornire uno strumento leggero e comodo per le analisi chemiometriche.
\end{center}
2 changes: 2 additions & 0 deletions thesis/2-index.md.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
\newpage
\tableofcontents
3 changes: 3 additions & 0 deletions thesis/3-intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Introduzione

Introduzione.
3 changes: 3 additions & 0 deletions thesis/999-ringraziamenti.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ringraziamenti

Ringraziamenti.
Binary file added thesis/logo-unibg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0b13ed3

Please sign in to comment.