diff --git a/.github/workflows/pytest-report.yml b/.github/workflows/pytest-report.yml new file mode 100644 index 0000000..8205b1b --- /dev/null +++ b/.github/workflows/pytest-report.yml @@ -0,0 +1,26 @@ +name: Pytest Report +on: + workflow_run: + workflows: [Pytest] + types: [completed] +permissions: + actions: read + checks: write + pull-requests: write +jobs: + checks: + runs-on: ubuntu-latest + steps: + - name: Download Test Report + uses: actions/download-artifact@v6 + with: + name: pytest-report + github-token: ${{ github.token }} + run-id: ${{ github.event.workflow_run.id }} + - name: Publish Test Report + uses: mikepenz/action-junit-report@v6 + with: + commit: ${{github.event.workflow_run.head_sha}} + report_paths: pytest.xml + comment: true + pr_id: ${{ github.event.workflow_run.pull_requests[0].number }} diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index c7cef8f..59c149e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -2,8 +2,6 @@ name: Pytest on: pull_request permissions: contents: read - checks: write - pull-requests: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -21,12 +19,10 @@ jobs: - name: Install failure annotation plugin run: pip install pytest-github-actions-annotate-failures - name: Test with pytest - run: | - set -o pipefail - pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov-report=html --cov | tee pytest-coverage.txt - - name: Comment pytest code coverage - uses: MishaKav/pytest-coverage-comment@main - if: ${{ always() }} + run: pytest --junitxml=pytest.xml + - name: Upload Test Report + uses: actions/upload-artifact@v6 with: - pytest-coverage-path: ./pytest-coverage.txt - junitxml-path: ./pytest.xml + name: pytest-report + path: pytest.xml + retention-days: 1 \ No newline at end of file diff --git a/assets/script.js b/assets/script.js index 90650d4..141088a 100644 --- a/assets/script.js +++ b/assets/script.js @@ -44,8 +44,10 @@ document.addEventListener("DOMContentLoaded", function() { "\\farad": "\\text{F}", "\\coulomb": "\\text{C}", "\\ohm": "\\Omega", + "\\Ohm": "\\Omega", "\\weber": "\\text{Wb}", "\\tesla": "\\text{T}", + "\\bit": "\\text{b}", }; renderMathInElement(document.body, { diff --git a/templates/html/index.html b/templates/html/index.html index 02e4da6..597dde2 100644 --- a/templates/html/index.html +++ b/templates/html/index.html @@ -118,10 +118,11 @@
-

Videokurs Klasse N

+

Videokurse

In Zusammenarbeit mit DL2YMR ist ein Videokurs für die Klasse N entstanden, der auf seinem YouTube-Kanal abrufbar ist.

- Zum Videokurs + Zum Videokurs Klasse N + Vorlesung Klasse N+E
diff --git a/templates/html/page.html b/templates/html/page.html index 41982a1..73b7ad9 100644 --- a/templates/html/page.html +++ b/templates/html/page.html @@ -128,7 +128,7 @@
Mit - vom 50ohm-Team entwickelt + vom 50ohm-Team entwickelt
Ein Angebot des Deutschen Amateur-Radio-Clubs e. V.
diff --git a/test/test_dash.py b/test/test_dash.py index 0a571e4..1d851e9 100644 --- a/test/test_dash.py +++ b/test/test_dash.py @@ -10,6 +10,7 @@ from test.util import paragraph def test_dash_html(): assertions = { "Foo - Bar": "Foo – Bar", + "Foo-Bar": "Foo-Bar", } for assertion in assertions: