Skip to content

Commit

Permalink
2nd update for WS23/24 (#12)
Browse files Browse the repository at this point in the history
* update for WS23/24

Additions: spezielle orthogonale Matrizen, Kompression, Rekursive Folgen, Definitheit & Quadratische Funktionen
Changes: minor additions and changes in 1., 2.3, 4.5, 8., 9., 10., 11.2

* add more understandable description in 2.8

* add rezept in 9.

* update template + add orth. diag

* update template + add orth. diag

Update Lineare-Algebra.tex

* Add Sarrus to 2.8

* add Beweise + formatting

Update Lineare-Algebra.tex

* fix typo

* add pca

Update Lineare-Algebra.tex

* Update Lineare-Algebra.tex

* A few changes

* remove git.id checks

* add Ähnlichkeit

* remove last section

* formatting

* change format of 2.9

* add colors to 3x3 det

* fix text going outside of column
  • Loading branch information
dariusptrs authored Nov 2, 2024
1 parent 88cbdb7 commit 25c85cb
Show file tree
Hide file tree
Showing 11 changed files with 392 additions and 136 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/inhaltlicher_fehler.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Inhaltlicher Fehler
description: Hilf uns Fehler zu Verbessern
title: ''
labels: [bug]
assignees: []

Expand Down
32 changes: 27 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,56 @@ name: CI

on:
push:
branches: [ master ]
branches: [ master, main ]
pull_request:
branches: [ master ]

branches: [ master, main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.2'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
- name: Run pytest
run: pytest

build:
runs-on: ubuntu-latest
container: makeappdev/uselatex:latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git safe directory with GITHUB_WORKSPACE
run: git config --global --add safe.directory $GITHUB_WORKSPACE

- name: Build
run: |
cmake --version; pdflatex --version
mkdir -p build && cd build
cmake ..
make
- name: Prepare Deployment
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
run: |
mkdir -p export
echo "# This branch is for deployment only" >> export/README.md
cp build/*.pdf export
cp build/git.id export
- name: Deploy
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
with:
branch: gh-pages
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Update README and LaTeX Build File

on:
workflow_dispatch:

jobs:
update-and-create-pr:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.2'

- name: Run update script
run: python scripts/update_files.py

- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Commit changes to a new branch
run: |
git checkout -b changes/${{ github.run_id }}
git add .
git commit -m "Apply automated updates"
git push -u origin changes/${{ github.run_id }}
- name: Create Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create --base main --head changes/${{ github.run_id }} --title "Specify project URLs and CMake project" --body "Please review the changes applied by the automated script."
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@ sympy-plots-for-*.tex/
# xindy
*.xdy
StochastischeSignale.pdf
git.id
*.DS_Store
Loading

0 comments on commit 25c85cb

Please sign in to comment.