This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Github workflow to compile latex and deploy the pdf to an orphan branch. | |
# The latest compiled pdf is at available at e.g. | |
# https://github.com/dgerosa/reponame/blob/build/filename.pdf | |
# Davide Gerosa (2021) https://github.com/dgerosa | |
name: writeapaper | |
on: [push] | |
jobs: | |
paper: | |
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import traceback | |
from functools import wraps | |
from multiprocessing import Process, Queue | |
def processify(func): | |
'''Decorator to run a function as a process. | |
Be sure that every argument and the return value |