Skip to content

exercise-frequent-patterns: Implemented the first exercise (practical… #298

exercise-frequent-patterns: Implemented the first exercise (practical…

exercise-frequent-patterns: Implemented the first exercise (practical… #298

Workflow file for this run

on: [push]
jobs:
pre_commit_validation:
name: Validate that pre-commit hooks have run
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Run hooks again to validate they have run
uses: xu-cheng/texlive-action@v2
with:
run: |
apk update
apk upgrade
apk add --virtual build-dependencies build-base gcc wget git
apk add --no-cache python3 python3-dev py3-pip nodejs npm
python3 -m venv venv
source venv/bin/activate
pip3 install pre-commit
git config --global --add safe.directory /github/workspace
pre-commit run --verbose --all-files > pre-commit-validation.txt & cat pre-commit-validation.txt
if cat pre-commit-validation.txt | grep -q Failed;
then
echo "Pre-commit run did not run on local machine."
exit 1
else
echo "Pre-commit did run on local machine."
fi
build_latex:
name: Build lecture PDFs
runs-on: ubuntu-latest
needs: [pre_commit_validation]
if: contains(needs.*.result, 'success')
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Build figures
uses: ./lecture/
env:
WORKSPACE: ${{ github.workspace }}
with:
run: |
cd $WORKSPACE/lecture
make figures
- name: Compile LaTeX document
uses: xu-cheng/texlive-action@v2
with:
run: |
apk add make
apk add git
git config --global --add safe.directory /github/workspace
git config --global --add safe.directory /home/runner/work/KDD/KDD
cd lecture
ls -la img
make all-wo-figures
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Lecture Slides
path: |
lecture/output/*.pdf
lecture/output/*.log
retention-days: 90
build_in_person_exercise:
name: Build the in-person exercise archives
runs-on: ubuntu-latest
needs: [pre_commit_validation]
if: contains(needs.*.result, 'success')
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Create the exercise archives
uses: xu-cheng/texlive-action@v2
with:
run: |
apk update
apk upgrade
apk add --virtual build-dependencies build-base gcc wget git
apk add --no-cache python3 python3-dev py3-pip nodejs npm
python3 -m venv venv
source venv/bin/activate
pip3 install -r exercise/in-person/requirements.txt
cd exercise/in-person
make all
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: In-Person Exercises
path: |
exercise/in-person/output/*.zip
retention-days: 90