Make Gitea checks self-contained
This commit is contained in:
@@ -10,10 +10,13 @@ jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout without an external action
|
||||
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
|
||||
run: |
|
||||
python3 -m pip install -r requirements-dev.txt
|
||||
CARD_LAYOUTS_REQUIRE_JSONSCHEMA=1 python3 scripts/check_repository.py
|
||||
run: python3 scripts/check_repository.py
|
||||
|
||||
@@ -76,7 +76,13 @@ make check
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user