Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Add github actions and delete/move pdfs #52

Closed
wants to merge 2 commits into from
Closed
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
11 changes: 11 additions & 0 deletions .github/actions/merge-pdftk/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:latest

# Installing packages
# hadolint ignore=DL3018
RUN apt update && \
apt install pdftk -y

# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#entrypoint
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
14 changes: 14 additions & 0 deletions .github/actions/merge-pdftk/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# `pdftk` GitHub Action

This action merges pdfs with `pdftk`.

## Inputs

- `input-pattern` (required): name of files that should be merged
- `output-file` (required): name of output

<!-- ## Example usage

uses: actions/hello-world-docker-action@v1
with:
input-file: 'my_file.tex' -->
20 changes: 20 additions & 0 deletions .github/actions/merge-pdftk/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Action metadata file:
# https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action#creating-an-action-metadata-file

name: 'pdftk GitHub Action'
description: 'Runs pdftk to merge pdf-files'
inputs:
input-pattern:
description: 'Pattern for input files'
required: true
output-name:
description: 'Name of output file'
required: false
default: 'merged.pdf'

runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.input-pattern }}
- ${{ inputs.output-name }}
6 changes: 6 additions & 0 deletions .github/actions/merge-pdftk/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

# Recommended entrypoint script:
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#example-entrypointsh-file

sh -c "pdftk $1 cat output $2"
31 changes: 31 additions & 0 deletions .github/actions/xelatex-week/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Alpine Docker image version
ARG ALPINE_VERSION="20201218"

FROM alpine:${ALPINE_VERSION}

# Installing packages
# hadolint ignore=DL3018
RUN apk update && \
apk add --no-cache \
texlive-full && \
rm -rf /var/cache/apk/

# No 'xelatex' user
#
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
#
# RUN addgroup -S xelatex && adduser -S -G xelatex xelatex
# USER xelatex

# Not dedicated project directory
#
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#workdir
#
# WORKDIR /home/xelatex/project

# Entrypoint script
#
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#entrypoint
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
19 changes: 19 additions & 0 deletions .github/actions/xelatex-week/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# `xelatex` GitHub Action

> Taken and extended from https://github.com/marcomicera/xelatex-action

This action runs xelatex on a `.tex` file.

## Inputs

- `input-file` (required): name of the file to be compiled with `xelatex`.

<!-- ## Outputs

None. -->

<!-- ## Example usage

uses: actions/hello-world-docker-action@v1
with:
input-file: 'my_file.tex' -->
20 changes: 20 additions & 0 deletions .github/actions/xelatex-week/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Action metadata file:
# https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action#creating-an-action-metadata-file

name: 'xelatex Lecture week'
description: 'Runs xelatex on each .tex in a given folder'
inputs:
folder:
description: 'Used folder'
required: true
mode:
description: 'Compiling mode. Can be "handout" or non handout'
required: false
default: 'animation'

runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.folder }}
- ${{ inputs.mode }}
11 changes: 11 additions & 0 deletions .github/actions/xelatex-week/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

# Recommended entrypoint script:
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#example-entrypointsh-file

cd $1
sh -c "mkdir $2";
for f in *.tex ; do
sh -c "xelatex -interaction=nonstopmode -jobname=${f%.*} \"\def\is$2{} \input{$f}\"" ;
sh -c "mv ${f%.*}.pdf ${2}/${f%.*}.pdf";
done
85 changes: 85 additions & 0 deletions .github/workflows/compile-all-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Compile all

on: push

jobs:
compile:
name: Compile
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
week: [
"w01_big_picture",
"w02_evaluation",
"w03_algorithm_selection",
"w04_hpo_basics",
"w05_gps",
"w06_hpo_bo",
"w07_hpo_speedup",
"w08_hpo_multicrit",
"w09_nas",
"w10_meta_learning",
"w11_l2l_hpo_control",
"w12_analysis",
"w13_beyond_automl",
"w14_practical_considerations",
"w15_wrap_up"
]
mode: [
"animation",
"handout",
]
steps:
- uses: actions/checkout@v2
- name: compile week ${{ matrix.week }} with xelatex
uses: ./.github/actions/xelatex-week
with:
folder: ${{ matrix.week }}
mode: ${{ matrix.mode }}
- uses: actions/upload-artifact@v2
with:
name: Slides ${{ matrix.week }} (${{ matrix.mode }})
path: ${{ matrix.week }}/${{ matrix.mode }}/*.pdf
merge:
name: Merge slides
needs: compile
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
week: [
"w01_big_picture",
"w02_evaluation",
"w03_algorithm_selection",
"w04_hpo_basics",
"w05_gps",
"w06_hpo_bo",
"w07_hpo_speedup",
"w08_hpo_multicrit",
"w09_nas",
"w10_meta_learning",
"w11_l2l_hpo_control",
"w12_analysis",
"w13_beyond_automl",
"w14_practical_considerations",
"w15_wrap_up"
]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: Slides ${{ matrix.week }} (handout)
path: ${{ matrix.week }}/
- name: Prepare output folder
run: sh -c "[[ -d slides ]] || mkdir slides"
- name: Merge slides for week ${{ matrix.week }} with pdftk
uses: ./.github/actions/merge-pdftk
with:
input-pattern: ${{ matrix.week }}/t*.pdf
output-name: slides/${{ matrix.week }}.pdf
- uses: actions/upload-artifact@v2
with:
name: Merged slides
path: slides/*.pdf

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@
/tmp
/.texlipse
/.project
/w06_hpo_bo/
/w09_nas/
1 change: 0 additions & 1 deletion slides/link_to_PDF_with_all_slides.txt

This file was deleted.

Binary file removed slides/w01_big_picture.pdf
Binary file not shown.
Binary file removed slides/w02_evaluation.pdf
Binary file not shown.
Binary file removed slides/w03_algorithm_selection.pdf
Binary file not shown.
Binary file removed slides/w04_hpo_basics.pdf
Binary file not shown.
Binary file removed slides/w05_gps.pdf
Binary file not shown.
Binary file removed slides/w06_hpo_bo.pdf
Binary file not shown.
Binary file removed slides/w07_hpo_speedup.pdf
Binary file not shown.
Binary file removed slides/w08_hpo_multicrit.pdf
Binary file not shown.
Binary file removed slides/w09_nas.pdf
Binary file not shown.
Binary file removed slides/w11_l2l_hpo_control.pdf
Binary file not shown.
Binary file removed slides/w12_analysis.pdf
Binary file not shown.
Binary file removed slides/w13_beyond_automl.pdf
Binary file not shown.
Binary file removed slides/w15_wrap_up.pdf
Binary file not shown.
Binary file removed w01_big_picture/t01_big_picture.pdf
Binary file not shown.
Binary file removed w01_big_picture/t02_the_team.pdf
Binary file not shown.
Binary file removed w01_big_picture/t035_connections.pdf
Binary file not shown.
Binary file removed w01_big_picture/t03_problems.pdf
Binary file not shown.
Binary file removed w01_big_picture/t04_risks.pdf
Binary file not shown.
Binary file removed w02_evaluation/t01_big_picture.pdf
Binary file not shown.
Binary file removed w02_evaluation/t02_evaluation.pdf
Binary file not shown.
Binary file removed w02_evaluation/t03_benchmarking.pdf
Binary file not shown.
Binary file removed w02_evaluation/t03_stat_tests.pdf
Binary file not shown.
Binary file removed w02_evaluation/t04_benchmarking.pdf
Binary file not shown.
Binary file removed w02_evaluation/t04_nested_evaluation.pdf
Binary file not shown.
Binary file removed w02_evaluation/t05_nested_evaluation.pdf
Binary file not shown.
Binary file removed w02_evaluation/t06_over_time.pdf
Binary file not shown.
Binary file removed w03_algorithm_selection/t01_big_picture.pdf
Binary file not shown.
Binary file removed w03_algorithm_selection/t02_portfolios_as.pdf
Binary file not shown.
Binary file removed w03_algorithm_selection/t03_features.pdf
Binary file not shown.
Binary file removed w03_algorithm_selection/t04_performance_models.pdf
Binary file not shown.
Binary file removed w03_algorithm_selection/t05_comb.pdf
Binary file not shown.
Binary file removed w04_hpo_basics/t01_intro.pdf
Binary file not shown.
Binary file removed w04_hpo_basics/t02_rsgs.pdf
Binary file not shown.
Binary file removed w04_hpo_basics/t03_ea.pdf
Binary file not shown.
Binary file removed w04_hpo_basics/t04_practical.pdf
Binary file not shown.
Binary file removed w05_gps/t01_bayes_lm.pdf
Binary file not shown.
Binary file removed w05_gps/t02_basic.pdf
Binary file not shown.
Binary file removed w05_gps/t03_covariance.pdf
Binary file not shown.
Binary file removed w05_gps/t04_prediction.pdf
Binary file not shown.
Binary file removed w05_gps/t05_training.pdf
Binary file not shown.
Binary file removed w05_gps/t06_mean.pdf
Binary file not shown.
Binary file removed w05_gps/t07_covariance_adv.pdf
Binary file not shown.
Binary file removed w05_gps/t08_additional.pdf
Binary file not shown.
Binary file removed w05_gps/t09_classification.pdf
Binary file not shown.
Binary file removed w06_hpo_bo/t01_introduction.pdf
Binary file not shown.
Binary file removed w06_hpo_bo/t02_acq_functions_1.pdf
Binary file not shown.
Binary file removed w06_hpo_bo/t03_acq_functions_2.pdf
Binary file not shown.
Binary file removed w06_hpo_bo/t04_surrogate_models.pdf
Binary file not shown.
Binary file removed w06_hpo_bo/t05_extensions.pdf
Binary file not shown.
Binary file removed w06_hpo_bo/t06_tpe.pdf
Binary file not shown.
Binary file removed w06_hpo_bo/t07_success_stories.pdf
Binary file not shown.
Binary file removed w06_hpo_bo/t99_bibliography.pdf
Binary file not shown.
Binary file removed w07_hpo_speedup/t01_intro.pdf
Binary file not shown.
Binary file removed w07_hpo_speedup/t02_meta_learning.pdf
Binary file not shown.
Binary file removed w07_hpo_speedup/t03_mf_overview.pdf
Binary file not shown.
Binary file removed w07_hpo_speedup/t04_hyperband.pdf
Binary file not shown.
Binary file removed w07_hpo_speedup/t05_bohb.pdf
Binary file not shown.
Binary file removed w07_hpo_speedup/t06_mf_bo.pdf
Binary file not shown.
Binary file removed w07_hpo_speedup/t07_learning_curve.pdf
Binary file not shown.
Binary file removed w07_hpo_speedup/t08_success_stories.pdf
Binary file not shown.
Binary file removed w07_hpo_speedup/t99_bibliography.pdf
Binary file not shown.
Binary file removed w08_hpo_multicrit/t01_introduction.pdf
Binary file not shown.
Binary file removed w08_hpo_multicrit/t02_evolutionary_algos.pdf
Binary file not shown.
Binary file removed w08_hpo_multicrit/t03_bo.pdf
Binary file not shown.
Binary file removed w08_hpo_multicrit/t04_practical.pdf
Binary file not shown.
Binary file removed w09_nas/t01_big_picture.pdf
Binary file not shown.
Binary file removed w09_nas/t02_search_spaces.pdf
Binary file not shown.
Binary file removed w09_nas/t03_blackbox_nas_opt.pdf
Binary file not shown.
Binary file removed w09_nas/t04_speedup_techniques.pdf
Binary file not shown.
Binary file removed w09_nas/t05_best_practices.pdf
Binary file not shown.
Binary file removed w09_nas/t07_oneshot_nas.pdf
Binary file not shown.
Binary file removed w09_nas/t08_darts.pdf
Binary file not shown.
Binary file removed w09_nas/t09_NASlib.pdf
Binary file not shown.
Binary file removed w09_nas/t10_practical_recommendations.pdf
Binary file not shown.
Binary file removed w09_nas/t99_bibliography.pdf
Binary file not shown.
Binary file removed w11_l2l_hpo_control/t01_big_picture.pdf
Binary file not shown.
Binary file removed w11_l2l_hpo_control/t02_control.pdf
Binary file not shown.
Binary file removed w11_l2l_hpo_control/t03_control_learning_rates.pdf
Binary file not shown.
Binary file removed w11_l2l_hpo_control/t04_pbt.pdf
Binary file not shown.
Binary file removed w11_l2l_hpo_control/t05_l2l_supervised.pdf
Binary file not shown.
Binary file removed w11_l2l_hpo_control/t06_l2l_rl.pdf
Binary file not shown.
Binary file removed w12_analysis/t01_big_picture.pdf
Binary file not shown.
Binary file removed w12_analysis/t02_automl_process.pdf
Binary file not shown.
Binary file removed w12_analysis/t03_local_importance.pdf
Binary file not shown.
Binary file removed w12_analysis/t04_global_importance.pdf
Binary file not shown.
Binary file removed w13_beyond_automl/t01_big_picture.pdf
Binary file not shown.
Binary file removed w13_beyond_automl/t02_racing.pdf
Binary file not shown.
Binary file removed w13_beyond_automl/t03_capping.pdf
Binary file not shown.
Binary file removed w13_beyond_automl/t04_procastination.pdf
Binary file not shown.
Binary file removed w13_beyond_automl/t05_practice.pdf
Binary file not shown.
Binary file removed w13_beyond_automl/t06_piac.pdf
Binary file not shown.
Binary file removed w15_wrap_up/t01_intro.pdf
Binary file not shown.
Binary file removed w15_wrap_up/t02_prepro.pdf
Binary file not shown.
Binary file removed w15_wrap_up/t03_practical_problems.pdf
Binary file not shown.
Binary file removed w15_wrap_up/t04_pipelines.pdf
Binary file not shown.