Make Gitea checks self-contained

This commit is contained in:
mpabi
2026-07-15 08:45:39 +02:00
parent 65299458ed
commit fdde24a0aa
2 changed files with 15 additions and 6 deletions
+8 -5
View File
@@ -10,10 +10,13 @@ jobs:
check: check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout without an external action
uses: actions/checkout@v4 run: |
set -eu
git init .
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
git fetch --depth=1 origin "$GITHUB_SHA"
git checkout --detach FETCH_HEAD
- name: Check schemas and render example - name: Check schemas and render example
run: | run: python3 scripts/check_repository.py
python3 -m pip install -r requirements-dev.txt
CARD_LAYOUTS_REQUIRE_JSONSCHEMA=1 python3 scripts/check_repository.py
+7 -1
View File
@@ -76,7 +76,13 @@ make check
``` ```
Walidacja względem JSON Schema jest wykonywana, gdy dostępny jest pakiet Walidacja względem JSON Schema jest wykonywana, gdy dostępny jest pakiet
`jsonschema`; CI instaluje go z `requirements-dev.txt`. `jsonschema`. Workflow Gitei pozostaje samowystarczalny i zawsze uruchamia
walidację relacji generatora; pełną walidację schematów można włączyć lokalnie:
```bash
python3 -m pip install -r requirements-dev.txt
CARD_LAYOUTS_REQUIRE_JSONSCHEMA=1 python3 scripts/check_repository.py
```
Generator można też wywołać bezpośrednio dla dowolnego katalogu karty: Generator można też wywołać bezpośrednio dla dowolnego katalogu karty: