Skip to content

build(deps): bump scikit-learn in /exercise/5-Clustering #400

build(deps): bump scikit-learn in /exercise/5-Clustering

build(deps): bump scikit-learn in /exercise/5-Clustering #400

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_lecture:
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_exercise:
name: Build the 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/requirements.txt
cd exercise
make all
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Exercise Archives
path: |
exercise/output/*.zip
retention-days: 90
build_submission:
name: Build the submission 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: Create the submission PDFs
uses: xu-cheng/texlive-action@v2
with:
run: |
apk update
apk upgrade
apk add --virtual build-dependencies build-base gcc wget git
cd submission
make all
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: Submission PDFs
path: |
submission/output/*.pdf
retention-days: 90