Skip to content

Commit 25c85cb

Browse files
authored
2nd update for WS23/24 (#12)
* 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
1 parent 88cbdb7 commit 25c85cb

11 files changed

+392
-136
lines changed

.github/ISSUE_TEMPLATE/inhaltlicher_fehler.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Inhaltlicher Fehler
22
description: Hilf uns Fehler zu Verbessern
3-
title: ''
43
labels: [bug]
54
assignees: []
65

.github/workflows/ci.yml

+27-5
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,56 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ master, main ]
66
pull_request:
7-
branches: [ master ]
8-
7+
branches: [ master, main ]
98
# Allows you to run this workflow manually from the Actions tab
109
workflow_dispatch:
1110

1211
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.12.2'
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r scripts/requirements.txt
24+
- name: Run pytest
25+
run: pytest
26+
1327
build:
1428
runs-on: ubuntu-latest
1529
container: makeappdev/uselatex:latest
1630
steps:
1731
- uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Configure Git safe directory with GITHUB_WORKSPACE
36+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
37+
1838
- name: Build
1939
run: |
2040
cmake --version; pdflatex --version
2141
mkdir -p build && cd build
2242
cmake ..
2343
make
44+
2445
- name: Prepare Deployment
25-
if: github.ref == 'refs/heads/master'
46+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
2647
run: |
2748
mkdir -p export
2849
echo "# This branch is for deployment only" >> export/README.md
2950
cp build/*.pdf export
3051
cp build/git.id export
52+
3153
- name: Deploy
32-
if: github.ref == 'refs/heads/master'
54+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
3355
uses: JamesIves/[email protected]
3456
with:
3557
branch: gh-pages

.github/workflows/update.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Update README and LaTeX Build File
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
update-and-create-pr:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.12.2'
18+
19+
- name: Run update script
20+
run: python scripts/update_files.py
21+
22+
- name: Configure Git
23+
run: |
24+
git config user.name "github-actions[bot]"
25+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
26+
27+
- name: Commit changes to a new branch
28+
run: |
29+
git checkout -b changes/${{ github.run_id }}
30+
git add .
31+
git commit -m "Apply automated updates"
32+
git push -u origin changes/${{ github.run_id }}
33+
34+
- name: Create Pull Request
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
run: |
38+
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."

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,5 @@ sympy-plots-for-*.tex/
112112
# xindy
113113
*.xdy
114114
StochastischeSignale.pdf
115+
git.id
116+
*.DS_Store

0 commit comments

Comments
 (0)